Support » Plugin: Query Wrangler » Filter by post ID

  • Hello, I’ve created a query that shows recent articles – but I don’t want it to show an article if the user is currently on it.

    So, basically, I want to filter by the current post ID. I’m sure its possible, as if I manually enter a post ID and have the filter set to post_not_in then it works as expected.

    I just need to know how to call the current ID?

    Great plugin though! Brings back happy memories of Drupal!



Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jonathan Daggerhart


    Hi Mikeoc,

    The post ID filters have an undocumented feature that should work for you, “contextual tokens”.

    In the value for the post ID filter, try using this: {{post:ID}}

    Let me know how that works out, and thanks for the kind words!


    Thread Starter mikeoc


    Works perfectly – thank you!

    Funnily enough I think I tried this but stupidly entered it in the callback field (don’t judge me, I was very tired).

    Great stuff.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filter by post ID’ is closed to new replies.