We have a synced pattern (formerly known as reusable block) containing a modal, containing a query containing a post content block. We are using this on multiple pages. On the home page it works perfectly, on the “courses” page, the page content block returns empty only for the first post in the query.
Step-by-step reproduction instructions:
Please write the steps needed to reproduce the bug.
At this stage I am not sure this can be reproduced easily, here is the best I can do:
Add a Modal block (with a trigger)
Add a Query block with a Query Template to the Modal
Add a Post Content block in the Query Template
Convert this to a Synced Pattern
Add it to multiple pages (e.g. Home, Courses, etc)
Notice that the Post Content is blank (i.e. not returned) for the first post only on the courses page only
Probably not related, but a change was made in WP 6.3 with the core Post Content block such that it is only visible in the Gutenberg editor in the Site Editor. It used to be accessible in the regular content editor also.
Unfortunately, I haven’t been able to reproduce this error on my end.
To investigate this further, I have set up a demo instance.
Please log in with this, and see the test reusable block/synced pattern, as well as the page 1 and 2.
Feel free to play around with this, as I’m unsure whether I have set up the necessary in order to reproduce the issue.
@Araminta, just confirming this issue is still present with 1.3.0.1 for that specific website. We will investigate the cause in more detail over the coming week when we do some maintenance for the website.
We appreciate the issue is still present on your installation but will need more information to make sure the issue lies with Cwicly.
Would you be so kind as to give more info on what the “courses” page refers to exactly?
While it may not be the case, it’s important to remember that you cannot render a Post Content block within a Post Content block if it’s the same ID you’re querying.
This would be the case if your “courses” page is rendering a Post Content block which in turn contains a Post Content block of the same content (loop) because of the Query block.
So, the query we are doing is a completely separate one. It shows a list of trainers/coaches. It displays completely fine on the home page but exhibits the strange behaviour on the other page (“courses” page).
As the site is in soft launch and publicly available I will provide the details for the Cwicly team.