Skip to content

Instantly share code, notes, and snippets.

@alexpani
Created October 30, 2016 19:56
Show Gist options
  • Save alexpani/21ea618ad7f9dbc450afcaac5e246b16 to your computer and use it in GitHub Desktop.
Save alexpani/21ea618ad7f9dbc450afcaac5e246b16 to your computer and use it in GitHub Desktop.
//* Customize the entry info in the entry header (requires HTML5 theme support)
add_filter( 'genesis_post_info', 'an_post_info_filter' );
function an_post_info_filter($post_info) {
$post_info = 'Pubblicato il [post_date] da [post_author_posts_link] [post_comments] [post_edit]';
return $post_info;
}
//* Customize the post meta function
add_filter( 'genesis_post_meta', 'an_post_meta_filter' );
function an_post_meta_filter($post_meta) {
if ( !is_page() ) {
$post_meta = '[post_categories before="Categoria: "] [post_tags before="Tag: "]';
return $post_meta;
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment