I know it's a common problem, but I tried every solution appeared on this stackexchange.
Every solution has failed (maybe because I'm still a newbie).
I've this query on index.php page:
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
query_posts('cat=4,8,12&posts_per_page=5&paged=' . $paged);
if (have_posts()) : ?><?php while(have_posts() ) : the_post() ; ?>
[...]
I've enabled permalinks and I'm also using a (famous) SEO plugin.
My articles page URL is: http://www.mysite.com/news/page/x
where x is the number of the pagination.
Everything is working fine for the first 24 "pages", but from the 25th page the title become "Page not Found" and in breadcrumbs I can see "404".
The weird thing is that articles are still shown correctly with the correct pagination.
Any suggestion?
pre_get_posts
to properly modify the query variables before the main query executes