Site logo

[Support request] Hide Generate Block Element if Query Loop Empty?

Home Forums Support [Support request] Hide Generate Block Element if Query Loop Empty?

Home Forums Support Hide Generate Block Element if Query Loop Empty?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2402201
    Thomas

    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.

    #2402927
    Ying
    Staff
    Customer Support

    Hi Thomas,

    Can you link us to the query loop with and without content?

    Let me know 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.