You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made some custom templates for single posts within a specific category. The templates also have a query loop with a filter for that same category, so visitors can easily go to the next similar post. But when I save the theme, the category filters are removed. The templates show all posts.
Steps:
Create a custom template
Include the query loop block
In Settings, create a new search and have Post as post type.
Go to the Filter section and enter a specific category taxonomy
Go to the Create Block Theme section in the Site Editor. Select Save Changes to Theme.
Select all items, besides ‘Localize text’ and ‘Remove Navigation Refs’ and save the changes
Go to the custom template to see that the filter is removed.
WordPress: 6.6.2, Create Block Theme: 2.5.0
The text was updated successfully, but these errors were encountered:
Hey @FORTE-WP , I faced a similar issue and upon further review it seems like this was intentional.
Please refer to the code here in theme-templates.php.
Indeed, it seems intentional. However, I believe it should be an option, similar to the nav reference. When exporting to a ZIP file, the taxonomy filter can be removed, but saving the theme should not break it.
TremiDkhar
added a commit
to TremiDkhar/create-block-theme
that referenced
this issue
Nov 4, 2024
I have made some custom templates for single posts within a specific category. The templates also have a query loop with a filter for that same category, so visitors can easily go to the next similar post. But when I save the theme, the category filters are removed. The templates show all posts.
Steps:
WordPress: 6.6.2, Create Block Theme: 2.5.0
The text was updated successfully, but these errors were encountered: