create-block-theme icon indicating copy to clipboard operation
create-block-theme copied to clipboard

Query loop filters removed on saving theme

Open FORTE-WP opened this issue 1 year ago • 0 comments

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:

  1. Create a custom template
  2. Include the query loop block
  3. In Settings, create a new search and have Post as post type.
  4. Go to the Filter section and enter a specific category taxonomy
  5. Go to the Create Block Theme section in the Site Editor. Select Save Changes to Theme.
  6. Select all items, besides ‘Localize text’ and ‘Remove Navigation Refs’ and save the changes
  7. Go to the custom template to see that the filter is removed.

WordPress: 6.6.2, Create Block Theme: 2.5.0

FORTE-WP avatar Oct 04 '24 00:10 FORTE-WP