How To Display Blog Pages for a Single Category
Create a new page and set the Page Template to Blog.
Add a new Custom Field to the page.
Set the Name to the string query_args
and the value to cat=NNN&orderby=title&order=ASC
, where NNN is the ID of the desired category.
Ne sure to use the PLURAL form query_args
NOT query_arg
Be sure to click Publish or Update when done.
You can locate the Category ID on the Categories management page:
/wp-admin/edit-tags.php?taxonomy=category
If you cannot find the Custom Fields box on the edit page screen, look at the very top for a drop-down menu called “Screen Options”. Make sure that “Custom Fields” is checked.
You must be using a Genesis-based child theme.
In the child theme directory, create the file page_blog.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<?php /* WARNING: This file is part of the core Genesis framework. DO NOT edit this file under any circumstances. Please do all modifications in the form of a child theme. */ /** * Template Name: Blog * This file handles blog post listings within a page. * * This file is a core Genesis file and should not be edited. * * @category Genesis * @package Templates * @author StudioPress * @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) * @link http://www.studiopress.com/themes/genesis */ // to see the page title and page content, uncomment this: //add_action('genesis_loop', 'genesis_standard_loop' ,5); genesis(); |
Leave Your Comment
All fields marked with "*" are required.