WordPress.org

Ready to get started?Download WordPress

Forums

Post content from one category only on front page !!! (1 post)

  1. Mwafrika
    Member
    Posted 7 years ago #

    Hey guys.... i have this in my theme index.php works well but how do i add another category so its contents do not show up on front page

    Here is the code i have , content from category with id 8 do not show up i want to add id 10 and 12 how do i add that on the below code..

    <?php if ( have_posts() ) : query_posts($query_string .'&cat=-8'); while ( have_posts() ) : the_post(); ?>
    <?php $custom_fields = get_post_custom(); //custom fields ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags