(This tutorial is a modify version of Brad Dalton’s Add Latest Posts With Pagination To Front Page With Widgets Where he has provided the front-page.php code for News Pro Child Theme. Please do refer his article to understand this code.)
Most StudioPress themes include a front page file which normally includes widgets.
If you also want to includes your latest posts dynamically, you can enable the standard loop before or after the widget area’s.
Another option is to add a custom grid loop which also enables you to display your posts in a grid type layout or simply as features which are like the standard loop archive.
The only problem is, it may not generate pagination.
In this tutorial, i’ll provide the entire front-page.php template which includes all the code tested on the Magazine Pro Genesis Child Theme. You can modify the classes to fit in with your existing themes classes.
Here it is:
Confused? Here’s what the the front page & paginated pages look like after adding the code.
And here’s what the 2nd and subsequent paginated pages look like without the home page widgets.
Subscribe to our Newsletter
If you liked this article, then please subscribe to our newsletter for latest web resources. You can also find us on Twitter and Facebook.