I've been beating my head against a brick wall on this one. I need to add a 'sub-title' as part of the post title on conditionally selected posts. While I can filter the titles adding spans for css, I can't seem to grab on to what it is I need to do to get the subtitle custom field to display. Any help would be appreciated.
I did find this snippet but can't seem to wrap my head around how to get Genesis to output : (if custom field is populated this pulls the value after the h1) <code><? php
the_title( get_post_meta($post->ID, 'myCustomField', TRUE) . ': ');</code>
would Simple hooks be the best route?
You need to tell Genesis where to add your code...so in functions.php add......
add_filter ( 'genesis_after_post_title', 'my_function' );
Doak Heggeness, WordPress Development | Website
yes I got that no issues.. what I am trying to do however is this:
H1 TITLE : Artist Name I'm thinkin maybe the after post title hook won't do that?
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!