Skip to content

Instantly share code, notes, and snippets.

@manhleo93
Last active July 29, 2017 13:02
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 manhleo93/16937714467477b8e37498348584eb7a to your computer and use it in GitHub Desktop.
Save manhleo93/16937714467477b8e37498348584eb7a to your computer and use it in GitHub Desktop.
// 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