WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] pagenavi problem on index (hompage)

[Resolved] pagenavi problem on index (hompage)

  • my problem is with page navigation on index, results from page 2 are same with results from homepage and so on.

    On category, tags & search works fine.
    I use Simple Tags (i dezactivate and tested) and the problem is not there.

    Other plugins i use: AVH Extended Categories Widgets, Magic Contact, NtzAntispam, Restrict Categories, Simple Tags, Text Captcha, WP-Polls, WP-PostViews & WP-UserOnline

    PLEASE HELP 🙂 Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • in index i put this for showing post from a single category

    <?php if (query_posts('cat=1')) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>

    All works fine if i have <?php if (have_posts()) : ?> insted of <?php if (query_posts(‘cat=1’)) : ?>

    I want the navi to work with query_posts from a specific category

    THANKS PPL, but i resolve the problem thanks to scribu http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html

    i changed this
    <?php if (query_posts('cat=1')) : ?>

    with this
    <?php if (query_posts('cat=1' . '&paged=' . get_query_var('paged'))) : ?>

    You can close the topic now. Thank you, thank you, thank you
    WORDPRESS RULZZZ 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] pagenavi problem on index (hompage)’ is closed to new replies.