• Resolved teevee

    (@teevee)


    I have a problem with using query_tags on my front page. When I put query_posts(“cat=-14”) to the main index template the pages I get with links created by posts_nav_link are showing the same content as the front page. So, https://mywebsite/page/2/ has the same content as https://mywebsite/. When I remove the query_posts everything works fine.

    Any idea how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Discovered this the hard way myself.
    Change it to:
    <?php $wp_query->set( 'cat', '-14' ); ?>
    <?php query_posts( '' ); ?>

    And all should be well. I can’t say why this works and the query_posts doesn’t though.

    Thread Starter teevee

    (@teevee)

    That fixed it. Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘query_tags breaks paging’ is closed to new replies.