WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] pagenavi problem on index (hompage) (3 posts)

  1. teleanu
    Member
    Posted 3 years ago #

    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.

  2. teleanu
    Member
    Posted 3 years ago #

    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

  3. teleanu
    Member
    Posted 3 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic