Made in Europe, buy from Europe.

Black Friday

65% off Annual plans

25% off Lifetime · 10 per week

Ends December 2

Get the deal →

How to create a WordPress gallery from posts and pages

Updated 3 min read

You can create a WordPress gallery from posts and pages you already have, with no new uploads. Modula takes the images from your content and can link each image back to its post. The gallery keeps up when your posts change.

Note: Content Galleries is part of Modula Pro, included from the Trio plan. Turn it on in Modula → Extensions (see how to install extensions).

Watch how to add the images of your posts to a gallery and check their titles.
  1. Go to Modula → Galleries and click New gallery, or open an existing gallery. You can add content images to a gallery that already has other images.

  2. In the gallery editor, click the arrow next to Add.

  3. Choose Content Galleries. The Content Gallery window opens.

    The Add menu of the gallery editor with Content Galleries under Already on this site
  4. Under Please select the post type you want to import, pick Post, Page or a custom post type (a portfolio, products and so on).

  5. Match the gallery fields to fields of your posts: Image (for the featured image, _thumbnail_id), Title (for example post_title) and Caption (for example post_content or post_excerpt).

    The list is built from your latest post of that type. Make sure that post has an image, a title and some content. Advanced Mode shows every field the post has.

    The Content Gallery window with Post selected, the Image, Title and Caption fields matched, and Add post link to image ticked
  6. Turn on Add post link to image if a click on an image should open its post. Leave it off to keep the gallery’s normal click behavior.

  7. Click Generate Gallery. A message tells you how many posts were imported, how many had no image and how many were already in the gallery.

  8. Click an image in the gallery, then click Edit image.

  9. Check its Title and Caption, and fix them if needed.

Modula takes one image per published item, using the fields you matched.

Items without an image are skipped. Images that are already in the gallery aren’t added twice. Their title, caption and link are updated instead.

When the gallery is ready, you can add it to a post or page.

The gallery follows your content

Once you build a gallery from a content type, Modula keeps it up to date:

  • When you save a new or edited item of that type, its image is added to the gallery. If the image is already there, its title, caption and link are updated.
  • When you change an item’s image, the old image leaves the gallery and the new one takes its place.
  • When an item is deleted for good (emptied from the trash), its image is removed from the gallery.
Was this page helpful?
1 0

Still stuck?

Can’t find the answer?

Write to us with what you tried and what you expected to happen, and we’ll help you sort it out.