I'm still stuck on this issue..
The pagination on my WordPress blog is not working - http://www.example.com/news
When you click a different page number it updates the URL (and page title) correctly but it does not show different posts.
Ive tried:
- Disabling all plug-ins
- Changing the permalink structure
- Changing the number of blog posts displayed in Settings>Reading
- Changing http://www.example.com/recall-news to a different path to avoid conflicting with a post category named "news"
Nothing has worked for me.
I've seen many solutions for a custom query, but I'm using the posts page that you set in Settings>Reading>Posts Page so I did not write any code to display the posts on this page.
- What WordPress file do I modify to fix the blog pagination in this case? I'm guessing I can add something to functions.php, but I haven't found a solution yet.
UPDATE: I have not found the solution yet. I know I can do it by writing my own query but I want to stick with the default WP blog.
Check your WP loop in the category.php file (aka archive.php). It must contain the following:
and finished with:
I have played with the "posts pages" too but I'm getting no result.
Only working solution for me was a custome query in combination with the Page-Navi Plugin.
In my template i have the following code:
With the
post_per_page
i manage the entries per site. In while loop i build up the entries that should be showed.Try this
You should pass the "page"/"paged" var in the query_post function:
Create a file archive-learning.php in your theme.
That mean post_type is "learning"
Can you try using Wp-Pagenavi for generating your pagination? That way we can at least check if the problem is the default pagination or just some error in the coding that is not filling the paged variable correctly