Maybe you’re a publisher for an online newspaper or magazine – or if you’re like me, just a regular guy who likes to have a number of categories for his blog.
Either way, there’s a really neat feature we’ve placed inside the Blog Page template of the Genesis Framework that many folks don’t know exists.
Blog Page Settings
You might think that the Blog Page options on the Theme Settings page is somewhat limited. There you have the option to select either “All Categories” or a single category to be used on your blog page.
Here’s a screenshot which shows the Blog Page settings:
The question that you’re probably thinking is this – “What happens if I want to publish blog pages for each category that I have on my blog?”
As it appears, the Blog Page template can either be used to show all categories or just one – but looks are deceiving as there’s a way to create multiple instances of a blog page which showcases single categories.
Ok, this is really something easy to do – so follow the steps below carefully.
What’s Your Category ID?
The first thing you will want to do is identify what the category ID is of the category you want to use for your blog page. There are two ways to do that:
Option 1 – Download and activate the Reveal IDs plugin for WordPress.
Option 2 – Go to the Posts > Categories screen in your dashboard and edit the category. When you’re on the edit categories screen, take a look at your browser address bar and you’ll see something like this (note the part in bold):
Create Your Blog Page
Next, you’ll want to add a new page – be sure to select the Blog Page template from the Page Attributes box on the right hand side of your screen.
After you’ve done that, scroll down the screen below the post editor and you’ll see a box called “Custom Fields”.
Add a new custom field, using query_args as the name, and then type cat=1 as the value. (or replace 1 with the category ID you want to use for your blog page)
Here’s how that should look:
Publish Your Blog Page
Go ahead – click Publish and then check out your blog page!
If you want to create multiple blog pages using single categories simply rinse and repeat. I’ve used this same process for the Tutorials page here on my site.
This is a great way for sites with many topics or channels to have individual blog pages for each one.
Neat stuff, eh?