Skip to content

Instantly share code, notes, and snippets.

@topleague
Created February 13, 2019 06:56
Show Gist options
  • Select an option

  • Save topleague/26a9a859ef7357e43a3ef038d4888ee1 to your computer and use it in GitHub Desktop.

Select an option

Save topleague/26a9a859ef7357e43a3ef038d4888ee1 to your computer and use it in GitHub Desktop.
Filter Post Meta and Post Info in Genesis
// Relocate Post Meta
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
add_action( 'genesis_entry_header', 'genesis_post_meta', 9 );
// Filter Post Meta and Use it Condtionally
add_filter( 'genesis_post_meta', 'leaguewp_post_meta_filter' );
function leaguewp_post_meta_filter($post_meta) {
if ( !is_page() ) {
$post_meta = '[post_categories before=""] [post_tags before=""]';
return $post_meta;
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment