I need a way to selectively hide or allow thumbnails of featured images to appear on the front page of my site. Ideally, it would be a custom field on each post, where I could choose - for example - 1 or 0 to represent appear or remain hidden. Can someone provide the solution? Thank you.

link|improve this question
1  
I believe you gave yourself the solution, custom fields. :) – Jared Feb 11 at 18:06
feedback

1 Answer

A custom field would certainly do the job. If you wanted a slightly more elegant way of doing it, you could make a meta box (or maybe even hook the featured image box...not sure if that's doable or not off the top of my head) and add a checkbox for 'Display on Frontpage' or something like that.

Once you have that, its just a matter of modifying the loop on your frontpage so that (and this is pseudocode...so don't think it'll work)

if( custom_post_meta == desired_custom_post_meta ) {
     the_post_thumbnail();
}

and you should be done!

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.