Description:
We have a site with multiple custom post types (created in ACF) in addition to the default post type. Resources, Events, etc.
We have added Archive templates and Single templates for each post type.
In the Archives, we have used a Query block that inherits the query from the url.
When viewing the page in the front-end, it works perfectly and displays the correct posts. In the editor, it loads the default posts, not the custom ones.
For additional information, we used the + default templates for each custom type and appropriate visibility conditions in the Cwicly Themer > Templates.
Step-by-step reproduction instructions:
Please write the steps needed to reproduce the bug.
- Create a custom post type (e.g. Resources)
- Add some standard posts
- Add some custom posts (Resources)
- Open Cwicly Themer > Templates
- Add a default template for the post type
- Add a default template for the custom post type (Resource Archive template)
- Edit the Resource Archive template
- Add a Query block with inherit from URL enabled with a nested Query Template block
- Add some blocks with dynamic content from the custom posts
- Note that the query is loading standard post data in the editor preview, not the correct custom posts.
- View the archive in the frontend
- Note that it correctly displays the custom posts
Environment info
- WordPress version: 6.2.2
- Cwicly Plugin version: 1.2.9.9