WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Hide category from the categories list on the startpage? (3 posts)

  1. LoTekk
    Member
    Posted 7 years ago #

    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!

  2. moshu
    Member
    Posted 7 years ago #

    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.

  3. LoTekk
    Member
    Posted 7 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic