Created
January 13, 2014 15:39
-
-
Save 3200creative/8402422 to your computer and use it in GitHub Desktop.
Post Meta and Post Info customization Genesis 2.0
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 meta function | |
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
function sp_post_meta_filter($post_meta) { | |
if ( !is_page() ) { | |
$post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "]'; | |
return $post_meta; | |
}} | |
//* Customize the post info function | |
add_filter( 'genesis_post_info', 'sp_post_info_filter' ); | |
function sp_post_info_filter($post_info) { | |
if ( !is_page() ) { | |
$post_info = '[post_date] by [post_author_posts_link] [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