Skip to content

Instantly share code, notes, and snippets.

@srikat
Last active March 22, 2016 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srikat/adece0acf9c66ad005c8 to your computer and use it in GitHub Desktop.
Save srikat/adece0acf9c66ad005c8 to your computer and use it in GitHub Desktop.
How to add taxonomy slugs to entry terms span in Genesis. https://sridharkatakam.com/add-taxonomy-slugs-entry-terms-span-genesis/
add_filter( 'genesis_post_info', 'custom_post_info' );
function custom_post_info ( $post_info ) {
if ( is_singular( 'sermons' ) || is_post_type_archive( 'sermons' ) ) {
$post_info = '[post_date] [post_terms taxonomy="speaker" before=""] [post_terms taxonomy="series" before=""] [post_terms taxonomy="passage" before=""]';
}
return $post_info;
}
p.entry-meta .entry-time:after,
p.entry-meta .entry-terms:after {
content: '|';
padding-left: 7px;
padding-right: 5px;
}
p.entry-meta .entry-terms:last-child:after {
content: '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment