[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.
- title – The title displayed above the sitemap.
- Options: Any text value.
- layout – The layout used to display the sitemap.
- Options:
1,2(is not styled yet). Specify one only.
- Options:
- order – The order in which gallery posts are displayed.
- Default:
title. - Options:
id,title,author,date,modified,parent,menu_order,rand. Specify one only.
- Default:
- exclude_taxonomies – List of taxonomy slugs to exclude from the sitemap.
- Options: Any text value. Use commas to separate.
- hierarchical – Whether to display posts hierarchically (if applicable).
- Default:
on. - Options:
on,off. Specify one only.
- Default:
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. |
gallery, the sitemap will be empty.