• franco68

    (@franco68)


    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 template shows 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 and see that the filter is removed.

    WordPress: 6.6.2, Create Block Theme: 2.5.0

  • The topic ‘Query loop filters removed on saving theme’ is closed to new replies.