Use current taxonomy term in query
-
Hello,
I’m using the Advanced Query Loop block inside a taxonomy template.
In the query builder, I would like to automatically target the currently viewed taxonomy term (the term from the archive being displayed).
At the moment, if I manually select a term in the query, it works, but it’s not dynamic. If no term is selected, the query returns all posts, regardless of the taxonomy term currently being viewed, which makes the block unusable in a taxonomy template.
Is there a way to:
- Use the current queried term in the Advanced Query Loop?
- Or dynamically bind the query to the taxonomy term of the current archive?
If this is possible, could you please point me to the correct option or documentation?
Thank you for your help.
Best regards,
You must be logged in to reply to this topic.