Preventing WordPress featured image being added to gallery


I spent a while whilst working on this site trying to fathom out how to add a featured image to a post, along with a gallery, but to not have the featured image show up in the gallery. The problem appears to be that if you upload an image whilst editing your post, WordPress will automatically attach the image to the post, and thus add it to the gallery.

The solution is very simple: Instead of uploading the image whilst editing your post (which will automatically include it in the gallery), upload the image using the Media tab within your admin area. Then go to your post and insert the featured image from your media library. This will include the image in the post, but not attach it the the post so it will not show up in your gallery. Simple eh!

Posted in Web | Tagged , | 2 Comments

2 Responses to Preventing WordPress featured image being added to gallery

  1. Chris Miles says:

    Thanks for this workaround! This problem has been vexing me for some time. To me, a featured image should have it’s own tab/properties in WordPress. Seems like this was written back in 2010, and it’s still a a problem. At least you’ve posted a fix.

  2. George says:

    Still a valid solution in WP3.5.2.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

> Talk to me!

Twitter profile for Richard Turnbullwitter:
  • Attempting to load Twitter feed..
Facebook profile for Richard Turnbull LinkedIn profile for Richard Turnbull

> Tools

Share |

> Advert