Skip to content

Instantly share code, notes, and snippets.

@3200creative
Created January 13, 2014 15:39
Show Gist options
  • Save 3200creative/8402422 to your computer and use it in GitHub Desktop.
Save 3200creative/8402422 to your computer and use it in GitHub Desktop.
Post Meta and Post Info customization Genesis 2.0
//* 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