Last active
July 29, 2017 13:02
-
-
Save manhleo93/16937714467477b8e37498348584eb7a to your computer and use it in GitHub Desktop.
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
// Add Post Views on Post Info | |
add_filter( 'genesis_post_info', 'ja_add_post_view_to_info' ); | |
function ja_add_post_view_to_info($post_info) { | |
if ( !is_page() ) { | |
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [postview] [post_edit]'; | |
return $post_info; | |
} | |
} | |
// Add Post Views on Post Meta | |
add_filter( 'genesis_post_meta', 'ja_add_post_view_to_meta' ); | |
function ja_add_post_view_to_meta( $post_meta ) { | |
if ( !is_page() ) { | |
$post_meta = '[post_categories before="Filed Under: "] [post_tags before="Tagged: "] [postview]'; | |
return $post_meta; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment