Click here to register or to donate. Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.
My clients wants her 5 most recent posts on front page and a blog page with the rest. Can't figure out how to do this. Any suggestions?
Jan 10, 2016, 01:58 PM
10,172 posts · Jul 2009
Central New York State USA
You could probably use the List Category Posts plugin with an offset attribute to show all the posts except for the first five on a blog page. Then set the home page to show latest posts in Settings>Reading and set this to show 5 posts in the theme settings.
I'm not certain about how exact those instructions are but when setting it up it should be clear.
__________________ ~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Advantage: You can embed other content on the main page before/after the posts. I use a similar (but older) plugin on one site so we have a tiny blurb before the 3 most recent posts on the main page.
Jan 13, 2016, 01:45 PM
16 posts · Dec 2009
Thanks very much. I'm trying both. Having more luck with TPG Get Posts. I'm able to display the first 5 most recent posts on the front page (with some formatting problems). But don't know how to omit the first 5 posts on the blog page.
You could try using the 'Multi column/custom query' template supplied with the theme. Create a page that you would use as your blog page and use the 'offset' parameter in the query. This may cause a problem with the pagination. Read the linked article about that and you may have to do some customizaton of the template.
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
Jan 15, 2016, 08:55 AM
16 posts · Dec 2009
Thanks Juggledad. I see how that works but don't know where to add the offset query ($query = new WP_Query( array( 'offset' => 3 ) ). I'm not a coder.