Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Created February 5, 2013 21:42
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 kraftbj/4718003 to your computer and use it in GitHub Desktop.
Save kraftbj/4718003 to your computer and use it in GitHub Desktop.
Family Tree from Genesis - Make dates look fancy on home page
add_action( 'template_redirect', 'familytree_conditional_actions' );
/**
* Switch out default Genesis post info creation for Family Tree version.
*
* @since 1.0
*/
function familytree_conditional_actions() {
if ( is_page_template( 'page_blog.php' ) || is_post_type_archive() || is_singular( 'post' ) || is_home() ) {
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
add_action( 'genesis_before_post_content', 'familytree_post_info' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment