Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create archive templates for block and oik-plugins custom post types #36

Closed
bobbingwide opened this issue Nov 16, 2020 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Nov 16, 2020

The general purpose archive.html template embeds the a2z-pagination.html template part

<!-- wp:template-part {"slug":"a2z-pagination","theme":"fizzie"} /-->

which contains

<!-- wp:paragraph -->
<p>[bw_terms]</p>
<!-- /wp:paragraph -->

By default the [bw_terms] shortcode uses the letters taxonomy.
For Plugins and Themes this is OK.
But for Blocks we need to use the block letters taxonomy.

Thererfore we need separate template files archive-block.html and archive-block_example.html both of which will reference a block-a2z-pagination.html template part that contains the shortcode [bw_terms block_letters].

Also, the post_type attribute needs to be specified.
Therefore we also need archive-oik-plugins.

@bobbingwide bobbingwide added the enhancement New feature or request label Nov 16, 2020
@bobbingwide bobbingwide self-assigned this Nov 16, 2020
@bobbingwide bobbingwide changed the title Create archive template for block post type Create archive templates for block post type Nov 16, 2020
@bobbingwide bobbingwide changed the title Create archive templates for block post type Create archive templates for block and oik-plugins custom post types Nov 25, 2020
bobbingwide added a commit that referenced this issue Nov 25, 2020
…2z-pagination-oik-plugins template part, rename header-2-columns.html to header.html
@bobbingwide
Copy link
Owner Author

Delivered in v0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant