Show All Posts For Each Category Template

This code creates a new page template for Genesis which you can select from the drop menu under the Page Attributes meta box.

The code displays the category name and all posts published under that category name for every category which has published posts.

The code uses 3 WordPress functions:

  • get_categories
  • get_posts
  • get_category_link

Update : Here’s a newer solution which enables you to use any taxonomy type and display each post in any type of grid layout using even or uneven widths & heights.

all posts all categories

Related Solutions

Join 5000+ Followers

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