Site logo

Archived topic

Element Type Block - Hook containing Query Loop

2 replies · Started by Aldrin on August 3, 2022

Viewing posts 1–3 of 3

Hi, I've created an Element called Related Vehicles, which is Type Block-Hook to display in generate_after_content. This Block contains a Query Loop which selects Custom Post Type Vehicles in a specific category and displays them on the single vehicle post. So when viewing the single post for a specific vehicle, I would like the Block-Hook I created to be displayed, not to show the current post I am viewing. Any help would be appreciated.

I hope I am being clear.

Thanks

Hi Aldrin,

To exclude the current post from the query loop block is a GB pro feature, unfortunately.

That's what I thought. No problem

This archived topic is closed to new replies.