I want to place a featured image above the post title on the blog page of my site, but have it below the title on single post pages.
Google hasn't been my friend on this occasion. Can anyone help?http://www.brainfruitcreative.com/
You'd need to write a function... Something with a conditional like
if( is_home() || is_archive() || is_category() )
Let me ponder this for a little bit...
Thanks! That's very kind.
Here's a tutorial from Brad Dalton that should help: http://wpsites.net/web-design/add-remove-image-above-post-title/
The only thing I would change is where it says
if ( is_page() ) return; since you don't want them on single posts either. So you'd do something like
if ( is_page() || is_single() ) return; and that will keep the function from working on pages or single posts.
Thank you! I'll give this a go as soon as I get home. Thanks for taking the time to find the example.
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!