Display Latest Post In Each Category In Portfolio Style 3 Column Layout

In this post, i’ll provide all the code which creates a new page template you can use anywhere on your site.

The page template generates 9 widget areas which you can populate using the Genesis Featured Posts widget.

Here’s the result using the the new Lifestyle Pro child theme by StudioPress.

widget category archive

One of the benefits of using this code is the way the featured images display perfectly inline even if your latest post titles for each category aren’t the same length.

Code

Here’s all the code which is marked with the file names you need to paste it into.

Genesis Featured Posts Widget Settings

Once you’ve added all the code, you may want to use the same widget settings as i used in the above screenshot.

widget settings

Mobile Responsive Design CSS

Here’s what the page template looks like on a smaller screen.

mobile responsive css

If your site uses more than 9 categories, you can easily add more to the page template and your child themes functions file.

Other Methods


Comments

6 responses to “Display Latest Post In Each Category In Portfolio Style 3 Column Layout”

  1. Hi

    I am loving your great tutorials.

    I am using Metro Pro theme and there isn’t a page_widgets.php file…

    What do I do? Or where is it located?

    1. Brad Dalton Avatar
      Brad Dalton

      What do you want to do?

  2. Valerie Lynn Avatar
    Valerie Lynn

    Brad, thank you. This tutorial helped me do what I needed to do on the homepage of one of my sites and I was wracking my brain for two days with the Genesis Grid Loop.

    Your posts on the Genesis forum and here on your site have been incredibly helpful. What I like most is how you make everything easy to implement.

    Thank you so much!

    – Val

    1. Brad Dalton Avatar
      Brad Dalton

      My pleasure Val.

      The StudioPress community have been very good to me and its a real pleasure giving back to those people who have been appreciative.

      Its a win win healthy ecosystem

  3. So there is a page with 9 widgets areas and each of the widgets is populated with one post via Genesis Featured Posts Widget.
    Won’t be the same if you use 3 widgets with 3 posts in the Genesis Featured Posts Widget settings and restrict the text length via the widget settings?

    1. Brad Dalton Avatar
      Brad Dalton

      There’s 9 widgets however they are all conditional so no problem when not populated.

      I think its better just to display the title and featured image.

      Its a great way to display the latest post from every category on one page and its a request i’ve been asked many times.

      Finally had time to code it into a template which works with any child theme running Genesis.

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.