[gallery_sitemap]

The shortcode generates a sitemap for gallery posts.


Product


Shortcode Attributes

There are a number of shortcode attributes available which you can use to customize the output.

  1. title – The title displayed above the sitemap.
    • Options: Any text value.
  2. layout – The layout used to display the sitemap.
    • Options: 1, 2 (is not styled yet). Specify one only.
  3. order – The order in which gallery posts are displayed.
    • Default: title.
    • Options: id, title, author, date, modified, parent, menu_order, rand. Specify one only.
  4. exclude_taxonomies – List of taxonomy slugs to exclude from the sitemap.
    • Options: Any text value. Use commas to separate.
  5. hierarchical – Whether to display posts hierarchically (if applicable).
    • Default: on.
    • Options: on, off. Specify one only.

Example Usage

[gallery_sitemap title="My Gallery Sitemap" layout="2" order="date"]
Example:
This example displays a sitemap for the gallery with the title “My Gallery Sitemap”, using a compact layout sorted by date.
If you do not have any posts of the type gallery, the sitemap will be empty.