Support » Plugin: Query Wrangler » Category query

  • I’m really enjoying using Query Wrangler, but I don’t seem to be able to figure out how to simply query posts within a certain category (with ID=95). Do I use the callback feature for this or is there a simpler way do this?

    Thanks for any support!

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


    Hi Sem90,

    There are a few filters that should work for you. I recommend adding the filter “Taxonomy: Categories”. Once you add that to the query, click on the new filter added to the query to edit it, then check the box for the category you want to filter by.

    Let me know if you run into any issues.

    Thread Starter Sem90


    Hey Jonathan,
    Thank your for your quick response!

    I’ve had a look at the options – I can find a way to display the taxonomy ‘Category’ under the ‘Fields’ box. But when I go under Filter I don’t immediately see the option for adding a filter based on a taxonomy?

    These options I can see:
    – Callback
    (Provide a callback that can alter the query arguments in any way.)

    – Meta Key
    (Filter for a specific meta_key.)

    – Meta Key/Value Compare
    (Filter for a specific meta_key / meta_value pair.)

    – Meta Query
    (Filter for a single meta query)

    – Meta Value
    (Filter for a specific meta_value.)

    – Post IDs
    (Provide a list of post_ids to show or not show.)

    – Post Types

    Should I use any of these? Thanks again!

    Thread Starter Sem90


    I was able to resolve this by simply amending my shortcode to add a missing bit “args=”category_name=mycategoryofchoice”. So my shortcode became:
    [qw_query args="category_name=mycategoryofchoice" id="1"].

    Still not quite sure how I would’ve come here through the options on the QW ‘interface’ page, but this did the trick, hope it helps others!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Category query’ is closed to new replies.