After the upgrade to 3.4:
My website seems to be returning a 404 page when I navigate to the next set of posts on my homepage. I have a total of 12posts - 9per page.
I have tried the following:
- Change permalinks to default, then back to "month and name" structure
- added the code below to my functions file in my theme folder as some forum members were suggesting
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’ );
I thank you for your help in advance.