Stop certain categories showing in Headlines

Viewing 3 posts - 1 through 3 (of 3 total)
  • #4265
    nats24
    Participant

    I was just wondering if there was a way to prevent posts from certain categories showing up in the headlines area – there’s only two categories so far I don’t want showing and that’s Letters to the Staff posts and The Staff posts as they’re meant to be more ‘hidden’ and accessible through additional links. Is there anyway of doing this?

    #4270
    Daniel Tara
    Keymaster

    You can exclude categories by adding the parameter 'cat=-4,-5' to query_posts.
    Replace the numbers with the IDs of the categories you wish to exclude and add a – sign before them.

    #4297
    nats24
    Participant

    Where abouts in this line would this be: query_posts(“caller_get_posts=1&showposts=3”) as I’m assuming it’d be in that line

    • This reply was modified 12 years ago by nats24.
    • This reply was modified 12 years ago by nats24.
    • This reply was modified 12 years ago by nats24.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.