Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Rewrite the Archive Page content with Genesis
<?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();
<?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