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 include gallery images in your WordPress XML sitemap

Updated 3 min read

An XML sitemap is a file that lists the content on your website. It helps search engines find and index that content, including images. Modula adds your gallery images to your XML sitemap for you.

This is especially important for gallery plugins like Modula. Images in a gallery may not always be directly visible in the page HTML (the code of the page). This can happen when you use pagination or lazy loading, which loads images only when they are needed.

These techniques are great for speed and for your visitors. But they can make it harder for search engines to find your images.

To solve this, Modula works with Yoast SEO, Rank Math and SEOPress. Your gallery images are added automatically as image entries in the XML sitemaps these plugins create.

Watch how to check that your gallery images are listed in your SEO plugin’s XML sitemap.

Why gallery images belong in your XML sitemap

When an SEO plugin creates your XML sitemap, it can add image data next to each page URL. This tells search engines exactly which images are on each page.

Having your gallery images in the sitemap helps you:

  • Get gallery images indexed, even when they load dynamically (after the page opens).
  • Improve your visibility in Google Images.
  • Bring in more organic traffic (unpaid visits) from image search.

How it works

You do not need to do anything. Modula and one of the supported SEO plugins must both be active on your site. Your gallery images are then added automatically as image entries in the XML sitemap that the plugin creates.

These SEO plugins are supported:

  • Yoast SEO (free and premium)
  • Rank Math (free and premium)
  • SEOPress (free and premium)

If you use a different SEO plugin and would like similar support, you can reach out to the Modula team.

How to check your XML sitemap

You can confirm that your gallery images appear in your sitemap with these steps:

  1. Open your SEO plugin’s sitemap. You can usually find it at yoursite.com/sitemap.xml, or through the SEO plugin’s settings panel.
  2. Find a page or post that contains a Modula gallery.
  3. In the source code of the page, check that the gallery images are listed under that page’s entry.

    An XML sitemap from Yoast SEO with image entries listed under a gallery page

If gallery images are missing from the sitemap

First confirm that both plugins are active. If images are still missing, try regenerating the sitemap from your SEO plugin’s settings.

Some plugins cache sitemap output, which means they keep a saved copy. They may not show changes right away.

To help Google understand your images as well, see how to get gallery images indexed by Google.

Was this page helpful?
0 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.