About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Will that work with custom taxonomies too or does it need ot be adjusted with custom code for custom taxonomies?
Immediately useful. Thanks for posting this.
Sridhar,
Thanks for the great tutorial. I am using this and http://sridharkatakam.com/single-archive-templates-custom-post-type-genesis/ to try to display a custom post_info based a CPT custom taxonomy. How would I create a custom post_info for a post with a missing taxonomy. For stance I am using this:
add_filter( ‘genesis_post_info’, ‘custom_post_info’ );
function custom_post_info ( $post_info ) {
if ( is_singular( ‘sermons’ ) || is_post_type_archive ( ‘sermons’ ) || is_tax(‘series’)){
$post_info = ‘[post_date] | [post_terms taxonomy="speaker" before=""] | [post_terms taxonomy="series" before=""] | [post_terms taxonomy="passage" before=""] ‘;
}
return $post_info;
}
To display: Date | Speaker | series | passage
But “series” will not always be used. So the above code displays:
Date | Speaker | | passage
How could I modify the post_info to remove the addition ” | ” when series is missing?
Instead of placing the pipe characters in PHP, set them in CSS.
PHP: http://pastebin.com/raw/ws2WqVSt
CSS: http://pastebin.com/raw/mCMek9yG
This should take care of the problem.