Created
January 13, 2015 20:09
-
-
Save jdspiral/37cbd29b613f8aa255a8 to your computer and use it in GitHub Desktop.
Customize the post info function
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
//* 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