WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a site where I need to be able to add multiple images to a post, but not have them in the regular content of the post.

These images will be used in a gallery above the post.

My client might want to add images to the post itself too, so I can't just set img to display:none in the content div and use a loop to get the image attachments for the post to use.

The wp-e-commerce plugin has an area below it's custom product post type where you can only add images, which is exactly what I'm looking for, but I can't seem to find something similar.

Does anyone know of a plugin, or code snipet to add this type of functionality to a template?

share|improve this question
Plugin recommendations are off-topic here, but Advanced Custom Fields with the Gallery add-on is a high-quality, well-supported plugin, and one of the easiest ways to pull this off. I use this on just about every bespoke theme I build for clients. – Milo Jul 16 '13 at 3:39
This was exactly what I needed. – rmmoul Jul 16 '13 at 15:13

its tough to find a good solution to this but you need a custom meta box for file uploads: here is a post that walks you through this and he gives you a meta box class that can handle multiple image uploads. Make sure you also read part two, and dig around in the code so you can learn it for yourself =] http://www.deluxeblogtips.com/2010/04/how-to-create-meta-box-wordpress-post.html, best of luck!!

share|improve this answer
Please do not post answer of the form "look here for a the answer". The answer here should stand on its own and be valuable even if that link dies. – s_ha_dum Jul 16 '13 at 5:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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