Display different # of posts on different pages
I have been reading up on how to display posts from WP in other sections of my site and I have it pretty much working, but I’d like to be able to display different amounts of posts on different pages.
For example, I have a News which only displays posts in the News category. The problem is, if I have WP set to display 10 posts per page, and only 1 out of the last 10 is a News post, it only displays that one.
Is there a way I can tell it to display, say the last 10 posts in the News category regardless of how many other posts have been made recently?
In other words, is there a way to override the default posts per page depending on certain conditions?
- The topic ‘Display different # of posts on different pages’ is closed to new replies.