Would it be possible to add a dynamic value inside the exclude/include option inside the query builder?
For instance, when you show a “More news/projects” section under a single layout, you want to exclude the post that you are already viewing. Right now you cant use the query builder for this, but only the query string option or writing a custom looper.
Hey @100leiden,
I believe this is already possible. Please try the solution below:
Pass dynamic values to exclude/include posts in the Query Builder without having to write a fully custom looper provider or resorting to raw query strings. Instructions below:
Using “Custom” (Directly in the Cornerstone Builder UI)
The Query Builder element settings include a **Custom ** field that supports Dynamic Content and merges its output with the generated query.
You can input a JSON structure directly in that field to exclude the current post ID dynamically:
{ "post__not_in": [ {{dc:post:id}} ] }
Awesome! Havent thought about it this way 
Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
