Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/67fffdab821944cd78e5 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/67fffdab821944cd78e5 to your computer and use it in GitHub Desktop.
Default content hooked to genesis_entry_content (HTML5) or genesis_post_content (XHTML) where the archive page template is in use
<?php
// Default content hooked to genesis_entry_content (HTML5) or genesis_post_content (XHTML)
// where the archive page template is in use
// page_archive.php
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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment