• Resolved Sergej

    (@sergej)


    First to say that I tried a lot of options around “query_posts” code modifications, but it seems that I’m not smart enough.

    Here’s what it is: pagination works perfectly on the home page, but on the other pages does not work. For example, when in the menu click on my blog – posts are displayed, but when I click on Page 2 (pagination) opens to 404 pages and i get message ‘The page you are looking for doesn’t exist.’

    Here’s my code from theme/index.php:

    <?php
    $frontpage = false;
    if(is_front_page()){
    $frontpage = true;
    query_posts($query_string.”&cat=”.$lcp_blog_id.”&posts_per_page=”.$lcp_hp_post_per_page);
    }

    else if(post_is_in_descendant_category($lcp_blog_id))
    {
    query_posts($query_string.”&posts_per_page=”.$lcp_hp_post_per_page_blog);
    }
    else if(post_is_in_descendant_category($lcp_portfolio_id))
    {
    query_posts($query_string.”&posts_per_page=”.$lcp_hp_post_per_page_portfolio);
    }
    else if(is_archive())
    {
    query_posts($query_string.”&posts_per_page=”.$lcp_hp_post_per_page_archive);
    }
    else if( is_search() )
    {
    query_posts($query_string.”&posts_per_page=”.$lcp_hp_post_per_page_search);
    }

    ?>

    Many thanks in advance for advice and help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sergej

    (@sergej)

    It does not matter, I resolved the problem.

    Number of posts per page should be equal to the preference for the theme and setting for the entire site.

    Two days I beat my head against the wall, but it seems that there is something in my head ??

    Woah! I am the king, I’ve removed the problem without help.

    Plugin Author scribu

    (@scribu)

    Congratulations ??

    I have a problem. That is: i want to show a diffrent post_per_page on a achiver page but wp_pagenavi doesn’t work correctly, my post_per_page argurment is not effect.
    Who can help me?
    Thank for your help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-PageNavi] Work on the home page, on the other does not work’ is closed to new replies.