WordPress.org

Ready to get started?Download WordPress

Forums

Custom Community
Remove Category Posts From Front Page (1 post)

  1. Liltiger
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.