Support » Fixing WordPress » Hide category from the categories list on the startpage?

  • Resolved LoTekk

    (@lotekk)


    Hey!

    I’d like to hide a certain category (namely “administrative”) from the categories list on the startpage.

    I’ve been searching the forums but couldn’t find a similar problem — most people want to hide all posts from a certain category which is now what I want to do. Instead I want to post “administrative notices” from time to time and I want them to be completely and regularly listed among all other posts. I even want a visitor to be able to see all other “administrative” posts if they feel they need to and click on the “filed under administrative” link below a post.

    But: I don’t want “administrative” to show up on the categories list on the startpage.

    <– clueless 🙁

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • When you are clueless – the Codex is your best friend 🙂
    http://codex.wordpress.org/Template_Tags#Category_tags
    Read, compare… (which one is used in your theme). Edit (hint “exclude” parameter).

    Edit. And while being in the Codex, don’t forget to check out the Conditional Tags – if you want changes only on your main/home page.

    Great, thanks a million!

    <?php wp_list_cats('sort_col(...)ical=0&exclude=2'); ?>

    … did the trick!

    I would have NEVER EVER found it there without your hint! 😉

    <– still clueless but satisfied with the result now

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide category from the categories list on the startpage?’ is closed to new replies.