Last active
November 17, 2015 00:04
-
-
Save reasonstousegenesis/c0fb6ee4254dee0da532 to your computer and use it in GitHub Desktop.
Rewrite the Archive Page content with Genesis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Template Name: Archive | |
/** | |
* Rewrite the Archive Page content with Genesis | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-page-archive-content/ | |
*/ | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
add_action( 'genesis_entry_content', 'your_function_here' ); // replace your_function_here with your function | |
genesis(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Template Name: Archive | |
/** | |
* Rewrite the Archive Page content with Genesis (XHTML) | |
* | |
* @author Reasons to Use Genesis | |
* @link http://reasonstousegenesis.com/genesis-page-archive-content/ | |
*/ | |
remove_action( 'genesis_post_content', 'genesis_do_post_content' ); | |
add_action( 'genesis_post_content', 'your_function_here' ); // replace your_function_here with your function | |
genesis(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment