Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Created February 3, 2020 02:10
Show Gist options
  • Save cre8tivediva/dd44fcf8627ef58c9d7ea2e0267519c9 to your computer and use it in GitHub Desktop.
Save cre8tivediva/dd44fcf8627ef58c9d7ea2e0267519c9 to your computer and use it in GitHub Desktop.
Genesis 2.8 Copy of page_archive.php file
<?php
/**
* Genesis Framework.
*
* 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: Archive
*
* @package Genesis\Templates
* @author StudioPress
* @license GPL-2.0-or-later
* @link https://my.studiopress.com/themes/genesis/
*/
// Remove standard post content output.
remove_action( 'genesis_post_content', 'genesis_do_post_content' );
remove_action( 'genesis_entry_content', 'genesis_do_post_content' );
add_action( 'genesis_entry_content', 'genesis_page_archive_content' );
add_action( 'genesis_post_content', 'genesis_page_archive_content' );
/**
* This function outputs sitemap-esque columns displaying all pages,
* categories, authors, monthly archives, and recent posts.
*
* @since 1.6
*/
function genesis_page_archive_content() {
$heading = ( genesis_a11y( 'headings' ) ? 'h2' : 'h4' );
genesis_sitemap( $heading );
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment