Support » Fixing WordPress » Home page post & category customization

  • Hey guys, can someone help me with a little problem I have:

    Basically I try to modify the script to show only post from a certain category on home page:

    I have this code :

    <?php query_posts(array('post__not_in'=>$saved_ids));
     if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?>

    And this code :

    <?php
    query_posts($query_string . '&cat=1');
    ?>

    Could someone help me merge them?
    I tried

    <?php query_posts(array('post__not_in'=>$saved_ids));query_posts($query_string . '&cat=1');
    if (have_posts()) : while (have_posts()) : the_post(); update_post_caches($posts); ?>

    but it cancels the do not duplicate function.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Home page post & category customization’ is closed to new replies.