Last active
March 22, 2016 08:16
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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