Follow Me:

6 responses to “Excluding Page IDs from a Custom Query”

  1. Excluding Page IDs from a Custom Query | Coder Online

    [...] See the article here: Excluding Page IDs from a Custom Query [...]

  2. Dave Naves

    really appreciate you posting this article… helped me out in a big way. (saved tons-o-time)

    and if it's helpful, you can continue excluding other pages with these types of templates:
    and ID != "373" and ID != "374" and ID != "375" and ID != "376" etc., etc.

    not completely elegant, but it works.

    sharing your post twitter… paying it forward!

    =)
    thanks again and cheers,
    //dave
    My recent post Welcome to Daveworks Web Development Website Design and Development Specialists for Small Businesses

    1. Jim Stitzel

      Hey, Dave, I'm glad you found it helpful! I'm sure it's not the most elegant solution in the world, but it does the job in a pinch. Thanks for the retweet!

      My recent post 242 – Blend

  3. mark

    great post, thank you AA++

  4. pascal

    Doesn't work for me :s
    site is http://www.kasteelke.be/site
    and it is the StudioPress_Red theme with wp 3.2.1
    I want to hide the 3 last tabs but already searched for hours.
    Any help would be welcome :s

    1. Jim Stitzel

      This post is nearly two years old, and the WordPress core has changed quite a bit since then. Unless StudioPress has been updated to work with the most recent iterations of WordPress, then I'd suggest finding a new theme or crafting a new one from the WordPress TwentyTen or TwentyEleven themes.

Leave a Reply