Add block theme support and fix classic theme template issues - #56
Merged
Conversation
… separate deploy workflow Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
…to release Co-authored-by: Claude <noreply@anthropic.com>
- Add filter_block_template_include() to override block templates for taxonomy archives - Use get_block_template() and get_block_file_template() for database and file templates - Remove block theme warning message from admin notices - Taxonomy pages now work correctly with block themes like Twenty Twenty-Five Co-authored-by: Claude <noreply@anthropic.com>
Add single_template filter alongside singular_template to ensure custom template assignment works when the theme has single.php. WordPress template hierarchy calls single_template before singular_template, so both filters are needed for complete coverage. Fixes #54 Co-authored-by: Claude <noreply@anthropic.com>
- Update note to indicate plugin works with both classic and block themes - Fix template hierarchy order: single.php comes before singular.php Co-authored-by: Claude <noreply@anthropic.com>
- Remove deprecated rules (number-leading-zero, declaration-property-unit-whitelist) - Add @at-root to ignored at-rules for Sass support Co-authored-by: Claude <noreply@anthropic.com>
- Update test workflow node_version from 18 to 20 - Update package.json engines from >=18.0 to >=20.0 glob@11.1.0 requires Node 20 or >=22 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
Block Theme Support (#55)
filter_block_template_include()method to override block templates for taxonomy archivesget_block_template()andget_block_file_template()for database and file-based templatesClassic Theme Fix (#54)
single_templatefilter alongsidesingular_templatesingle_templatebeforesingular_template, so both filters are neededDocumentation
single.phpcomes beforesingular.phpTest plan
single.php: custom template should be applied🤖 Generated with Claude Code