How To Create WordPress Category Pages in Genesis Including Title and Content
erics, February 19th, 2021
Create two template files in the wp-content/themes/{themeName}/ subdirectory:
1 2 |
page_blog.php page_blog_plus_content.php |
page_blog.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<?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(); |
page_blog_plus_content.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<?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 Plus Content * 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(); |