Archived topic
Hide Generate Block Element if Query Loop Empty?
1 reply · Started by Thomas on November 4, 2022
Viewing posts 1–2 of 2
I have a query loop that pulls a custom post type post if the current post has the same post tag.
It works great however for posts without a custom post type I have an empty block and heading...
I could solve this by using another tag to exclude this block element but this would turn my dynamic block into a manual block.
Just wondering if there's a better way.
Hi Thomas,
Can you link us to the query loop with and without content?
Let me know :)
This archived topic is closed to new replies.