WordPress.org

Support

Support » Plugins and Hacks » Hide posts from a certain category

Hide posts from a certain category

  • Hello,

    are there any plugins out there that adds a “don’t show on frontpage” checkbox in your Write Post section? I want the readers to only find certain posts in their respective categories or through links on a Page.

    The plugins I did find was written to restrict the posts to a user’s access level, but it doesn’t really fit with my needs. Also, doing changes to the template (if post is in a certain category then skip) would mess up with the “Previous posts” counter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • i am looking for this as well. semilogic has an “opt-in” plugin, but not an “opt-out” one. if you find the answer, please post it here!! thanks

    Oh, would seem like adding:


    <?php
    if (is_home()) {
    query_posts("cat=-12");
    }
    ?>

    solves my problem although it does require some “hard coding”. I would have prefered having a more versatile way though. Like, I think a “sticky” or “slippery” option should be part of the WordPress system in the first place.

    elegant category invisibility can exclude specific categories..

    Actually, the code above has a very bad bug:

    <?php
    if (is_home()) {
    if (isset($_REQUEST['paged'])) {
    query_posts("cat=-12&paged=" . $_REQUEST['paged']);
    } else {
    query_posts("cat=-12");
    }
    }
    ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide posts from a certain category’ is closed to new replies.
Skip to toolbar