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 using Wordpress to power the blog section of my website, and also my event timeline (using custom post type admin area).

I'm looking to add the option to create image galleries, and include them in posts using a custom tag. I would like to handle the entire front end integration myself, just using the db data and files uploaded by a gallery plugin.

Are there any good back end only solutions for creating galleries or should I just roll my own?

share|improve this question

I used to rely on image gallery plugins, like PhotoQ -which no longer exists- or NextGen.
For one, a plugin may die and leave a migration problem, or it may be well maintained but require too much of custom coding.
Nowadays I try to keep it within WordPress attachment post type. A plugin may handle it but changing plugins is feasible.

Advanced Custom Fields is being actively maintained and can handle the task with ease. But the Repeater field is a premium add-on. And if you go premium, then it's better to use the Gallery add-on.

Another plugin option is Custom Content Type Manager, which also handles Custom Post Types and the repeater field is built-in.
You can find a complete example on how to make a post gallery with CCTM here: Creating Photo Gallery System with Custom Post Type.

If you want to make your own plugin, then see:

  • This gist is an example on how to program a repeatable uploader field. Based in this SO topic. But as the original, it lacks drag and drop ordering.
  • And this other gist to see how to implement the drag and drop feature.
share|improve this answer

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.