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 want several galleries, every gallery containing several images.

What is the proper way to do this two-level structure?

I'd make every element of each gallery a post.

share|improve this question
i'm having trouble understanding your last sentence. each sub-gallery has several images that are posts? – peteroak Aug 12 '12 at 10:42
@peteroak: Yes. – porton Aug 12 '12 at 10:51

Wordpress Posts (First level)

Yes, the posts feature can be used as a gallery. WordPress provides nice short code to show all the attached images in post. While adding galleries make sure they point to attachment page not to the real file.

When user clicks on any of image from the gallery they'll get to the attachment page.

Attachment template (Second level) - Codex

An "attachment" is a special post that holds information about files uploaded through the Media upload system.

You can use attachment template to show image as post and I guess, by little configuration you can enable comments for attachment posts too.

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.