Skip to content

Instantly share code, notes, and snippets.

@studiopress
Last active June 30, 2018 18:49
Show Gist options
  • Save studiopress/5700250 to your computer and use it in GitHub Desktop.
Save studiopress/5700250 to your computer and use it in GitHub Desktop.
Genesis post meta.
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* 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;
}}
/* Post Meta
------------------------------------------------------------ */
.post-meta {
border-top: 1px solid #ddd;
font-size: 14px;
margin: 0 0 20px;
padding: 5px 0 0;
}
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Remove the post meta function
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment