WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Mwafrika
    Member
    Posted 10 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