Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

"category__not_in" doesn't seem to filter in Query Posts

  1. I want to use Query Posts to not show posts within a certain category. But the field 'category__not_in' seems not to be filtering at all (as seems the case with 'category__in'). 'category_name' and 'tag' for example do work.

    Another strange behavior:
    When I put the Query Posts widget in 'Utility: Before Content' (Hybrid Hook Widgets) the page in which I show this widget (#content) does also show ALL other posts after the widget. When I put the Query Posts widget in 'Utility: After Content' the page only shows the post which I've defined. Do we have a bug here?

  2. By the way:
    I'm using only the latest versions of WP, Hybrid and all the plugins.

  3. You must be a logged-in exclusive member to view this reply.

  4. You must be a logged-in exclusive member to view this reply.

  5. Display: the_excerpt
    post_status: publish
    post_type: post
    showposts: 5
    order: DESC
    orderby: date
    category__not_in: voetnoten

    the rest: empty

    (wp_reset_query, caller_get_posts, get_the_image not selected, because when saving these are deselected...)

    You can see the result here: http://www.wilhelminadrucker.nl/wordpress/

  6. You must be a logged-in exclusive member to view this reply.

  7. Then what do I need to do to exclude the category "Voetnoten"?

    And where can I find the exact workings and use of the different settings in query_posts?

  8. You must be a logged-in exclusive member to view this reply.

  9. One last question about Query Posts:
    Do you have any idea why a selection of:

    wp_reset_query
    caller_get_posts
    get_the_image

    gets lost when I save the new settings?

    And did you see the first text of this topic?

    Another strange behavior:
    When I put the Query Posts widget in 'Utility: Before Content' (Hybrid Hook Widgets) the page in which I show this widget (#content) does also show ALL other posts after the widget. When I put the Query Posts widget in 'Utility: After Content' the page only shows the post which I've defined.

  10. You must be a logged-in exclusive member to view this reply.

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (188 posts)
  • Hybrid Theme (16,990 posts)
  • Options Theme (10,322 posts)
  • Structure Theme (2,624 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (293 posts)
  • WordPress Plugins (1,614 posts)
  • General Discussion (3,966 posts)