Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I know how to to create this kind of templates. Usually, I just start a custom WordPress loop. But when I checked a template file in the Genesis Framework I saw this:

page_blog.php:

<?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

 */

genesis();

This is the Blog Page and I'm puzzled.

How do I create a template that lists posts with a certain category?

share|improve this question

1 Answer 1

I don't know if you've found a solution yet but this has always worked for me:

  1. Do not edit the file you've copied the code for
  2. Create a new page (or use an existing one) and set it's template to Blog
  3. At the bottom of the same page under Custom Fields, type in query_args and then under value, type cat=CATERGORY
  4. Hit publish and you should be good.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.