• Mihai Joldis

    (@misulicus)


    hey there,..

    i used a code on the index.php template (using a different theme) that will hide posts from specific categories from showing

    <?php
       if (is_home()) {
          query_posts("cat=-141,-140,-3");
       }
    ?>

    the code works..cause the posts from that categories don`t show..but now i seem to have another problem
    The previous Entries & Next Entries keep showing me the same index page..
    if i remove the code from the index template the links work fine

    how to make it so i can keep hiding the posts and the links to work

    thanks

Viewing 1 replies (of 1 total)
  • stvwlf

    (@stvwlf)

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
          query_posts("cat=-141,-140,-3&paged=$paged"); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Previous posts problem’ is closed to new replies.