Skip to content

Instantly share code, notes, and snippets.

@davebonds
Created April 22, 2014 22:49
Show Gist options
  • Save davebonds/11197044 to your computer and use it in GitHub Desktop.
Save davebonds/11197044 to your computer and use it in GitHub Desktop.
//Filter the Taxonomy Meta on a CPT
function themeprefix_genesis_post_meta_filter( $post_meta ) {
if ( 'coaching_technique' == get_post_type() ) {//swap in CPT name
$post_meta='[post_terms taxonomy="difficulty-level" before="Difficulty Level: "]';//swap in taxonomy and label name
return $post_meta;
}
}
add_filter( 'genesis_post_meta','themeprefix_genesis_post_meta_filter', 11 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment