Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Recent posts on front page, older on blog page (http://forum.bytesforall.com/showthread.php?t=23379)

tglass118 Jan 10, 2016 10:18 AM

Recent posts on front page, older on blog page
 
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?

lmilesw Jan 10, 2016 12:58 PM

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.

cefiar Jan 10, 2016 01:39 PM

You could use something like the TPG Get Posts plugin to do that. https://wordpress.org/plugins/tpg-get-posts/

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.

tglass118 Jan 13, 2016 12:45 PM

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.

juggledad Jan 13, 2016 02:00 PM

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.

tglass118 Jan 15, 2016 07:55 AM

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.

juggledad Jan 15, 2016 09:39 AM

If you use the template you can put it in the custom query - go read the thread: 'TEMPLATE: Multi Column/Custom Query' in the Gold Forum>>Tutorials


All times are GMT -6. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.