WordPress.org

Support

Support » Themes and Templates » Custom Community » Remove Category Posts From Front Page

Remove Category Posts From Front Page

  • Hi There,

    I’m trying to prevent one category’s posts from showing up in the front page. I just want the post to show up on the dedicated page that I’ve created for it.

    Per instructions from http://codex.wordpress.org/The_Loop I’ve tried adding

    <?php if ( is_home() ) {
    query_posts($query_string . ‘&cat=-97’);
    }
    ?>

    to the single.php and functions.php (one at a time) without success.

    Do I have the wrong code, or am I pasting it in the wrong place? I’m pretty sure the category&tag_ID is 97.

    Thank You,

    Jamie

  • The topic ‘Remove Category Posts From Front Page’ is closed to new replies.
Skip to toolbar