Skip to content

Instantly share code, notes, and snippets.

@jdspiral
Created January 13, 2015 20:09
Show Gist options
  • Save jdspiral/37cbd29b613f8aa255a8 to your computer and use it in GitHub Desktop.
Save jdspiral/37cbd29b613f8aa255a8 to your computer and use it in GitHub Desktop.
Customize the post info function
//* Customize the post info function
remove_action( 'genesis_entry_header', 'genesis_post_info', 12);
add_action( 'genesis_entry_header', 'genesis_post_info', 9 );
add_filter( 'genesis_post_info', 'jds_post_info_filter' );
function jds_post_info_filter($post_info) {
if (is_home() || is_archive()) {
$post_info = '[post_categories before=""] [post_comments] [post_edit]';
return $post_info;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment