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 working on a project that will require two separate galleries to be displayed on the same post. One gallery is specific to the product and the other is professional generic shots. The content of both galleries will change with every post.

I need to figure out how to show two separate galleries on a post and repeat this process daily.

The only way that I can think of is to store images in another post (post-b) and insert post-b using either @MikeSchinkel's or @Scribu's post to post connector.

What would you do?

share|improve this question
up vote 0 down vote accepted

If possibile, use NextGen Gallery plugin, to manage the gallery, and with the help of custom fields, manage it in the post

You can create two custom fields, like:

  1. first_gallery
  2. second_gallery

and fill it with the nextgen gallery ID. You can do a custom metabox with a select box, if you want.

The in the frontend code, use

   $first = get_post_meta($post->ID, 'first_gallery',true);
   $second = get_post_meta($post->ID, 'second_gallery',true);
   echo do_shortcode('[nggallery id='.$first.']');
   echo do_shortcode('[nggallery id='.$second.']');

Hope this it helps.

Bonus: there are many nextgen gallery plugins that let you change how the gallery is rendered to the user.

share|improve this answer
Thanks @keatch I'll have to look into NGG some more. I didn't even think of that plugin. :) – mattrepublic Aug 9 '11 at 16:18
Ok, let me know! – keatch Aug 9 '11 at 17:29

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.