[Plugin: WP-PageNavi] Work on the home page, on the other does not work
-
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!
- The topic ‘[Plugin: WP-PageNavi] Work on the home page, on the other does not work’ is closed to new replies.