billerickson / Gallery-Metabox

Displays all the post's attached images on the Edit screen.
33 stars 12 forks source link

Featured Image, suggestion #2

Closed dangerseeker closed 12 years ago

dangerseeker commented 12 years ago

I really like the plug-in, but there is one tiny little thing that would make it even better. Since WP 2.9.something there is a "featured image" feature, enabling the user to select one picture out of all attached pictures and make it a favorite. That picture is used by many themes already and works just fine ;-)

How about highlighting the featured image within the metabox, e.g. star icon, frame around the preview...

billerickson commented 12 years ago

I don't plan to add this to the plugin itself, but you should be able to do that with the filters that are in place. The 'be_gallery_metabox_output' filter lets you modify the outputted markup for each image. You could check to see if that image is the featured image, and if so wrap it in something like <img ... />. Then enqueue an admin stylesheet to change the look of images marked as featured.

dangerseeker commented 12 years ago

Thanks Bill, I think I can handle that ;-)

Am Donnerstag, 2. August 2012 um 17:13 schrieb Bill Erickson:

I don't plan to add this to the plugin itself, but you should be able to do that with the filters that are in place. The 'be_gallery_metabox_output' filter lets you modify the outputted markup for each image. You could check to see if that image is the featured image, and if so wrap it in something like <img ... />. Then enqueue an admin stylesheet to change the look of images marked as featured.


Reply to this email directly or view it on GitHub: https://github.com/billerickson/Gallery-Metabox/issues/2#issuecomment-7458091