![]() |
Removing 'Next Page' link from last page of blog
Any idea on how to get rid of the 'Next Page' link on the last listings page: http://bit.ly/Rpj9G4? Since there are no more blog posts beyond that page, it takes you to a 404.
|
What is your posts per page setting in your reading settings? Are you changing the category or anything else for this?
|
"Blog pages show at most" is set to 30. I wonder if this has anything to do with it being used for Press Releases.
|
the problem is you have it set to show 30 posts per page but in that template it is only showing 10 posts per page.
|
As a test, in our development environment, I reduced it to 5 posts per page, but it didn't affect either the Blog page or the Press Releases page. Both still show 10 posts per page.
|
You appear to be using some kind of template file to change the query. It is using the grid loop output.
|
I think you're right. I wonder if the Press Releases template is count Blog posts.
|
Strange. I found the control in a custom template, which had posts_per_page set to 10. No matter what number I change that to, I get a 404 for page 6. Just for testing purposes, I changed it to 100 and didn't get the Next Page link on page 2, which is correct (but we need to have it at 10 per page).
Here's the template: PHP Code:
|
There are around 130 press releases. When I change the posts_per_page to 30, I don't get the Next Page link on the last page (page 5), which is correct. However, that doesn't resolve the issue, since that is too many per page. Any idea where to look?
|
you will need to use a function in the functions.php file to customize the posts_per_page in the query
http://billerickson.net/customize-the-wordpress-query/ |
| All times are GMT -5. The time now is 07:08 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.