Brian Gardner, co-founder at copyblogger media and Genesis Framework Master Mind, posted this article on How to Create a Blog Page with a Single Category, that I have found very helpful in setting up some landing pages exactly the way I wanted to.
His article plus the how-to Add Content to the top of the Genesis Blog Page Template by the Genesis Rockstar Jennifer Baumann did the trick.
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?
Add Content to the top of the Genesis Blog Page Template
She has a simple article explaining how to do exactly what I was looking for, allow the editor box above blog pages so I could add some static text to my blog pages. Between this article and hers I have my perfect solution.
By default, the Genesis Framework Blog Page Template does not allow you to display content added using the WordPress editor. In some cases you may want to add an image or additional information at the top of the page. To enable this functionality, simply create a file named page_blog.php in your child theme directory, with the following content.
* Template Name: Blog
* This file handles blog post listings within a page.
* @author Jen Baumann
* @link http://dreamwhisperdesigns.com/?p=1011
* @package Genesis
add_action(‘genesis_loop’, ‘genesis_standard_loop’, 8);