Add Latest Posts with Pagination to Front Page of Magazine Pro Genesis Child Theme With Widgets


6 Flares

6 Flares


×

(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:

Screen Shots

Confused? Here’s what the the front page & paginated pages look like after adding the code.

Add Latest Posts with Pagination to Front Page of Magazine Pro Genesis Child Theme With Widgets

And here’s what the 2nd and subsequent paginated pages look like without the home page widgets.

Add Latest Posts with Pagination to Front Page of Magazine Pro Genesis Child Theme With Widgets

Join Our Email Newsletter

Like what you read here in this blog post? Get free blog updates in your Email!

When signing up you will initially receive a confirmation email requiring your approval to complete the Subscribtion.

Start learning on Udemy today!
  • http://technblogging.com/ Kingsley Felix

    Thanks for the tutorial however, i was unable to control the numbers of post displayed….

  • Bob

    I think there’s something wrong here – this solution shows the first 6 posts twice. Is there a way to offset the posts that come after the widgets?

  • http://www.eyes4tech.com/ Arsie

    I checked Brad and yours update, however I have 2 questions for you.

    1. I am also using the Magazine Child theme but not the latest upgrade Magazine Pro, will the code still work?

    2. On my Magazine Child theme, I don’t have front-page.php but I have there the default page_landing php. Should I update it with the code above or I have to create front-page.php?

    Thanks

    • http://pixel2pixeldesign.com/ Pixel2Pixel Design

      Hi Arsie,
      Thanks for checking this tutorial but sorry to tell you that i have not used magazine child theme, so not able to tell you whether this code will work for magazine child theme.

      But you can try pasting this code to page_landing php fill on your local environment and see whether it is working or not.

      • http://www.eyes4tech.com/ Arsie

        I might try to do that.. or I might update with the latest magazine pro theme.