After WP 3.4 Upgrade the pagination setup not working anymore
-
After I have upgraded the pagination setup is not working anymore after a certain number of pages, I have tried to change 3 themes and I had the same problem with all.
I found a solution somewhere here, but it solved the problem only for the blog posts pages index (tags, categories and search still not working)
After I have added this code to theme functions
function my_post_queries( $query ) { // not an admin page and it is the main query if (!is_admin() && $query->is_main_query()){ if(is_home()){ $query->set('posts_per_page', 1); } } } add_action( 'pre_get_posts', 'my_post_queries' );
the pagination of the home/blog posts works correctly, but search, category and tags pagination is still does not work after a certain number of pages, what can I do ?
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘After WP 3.4 Upgrade the pagination setup not working anymore’ is closed to new replies.