[testimonial_sitemap]
The shortcode generates a sitemap for testimonial 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 the testimonial posts are sorted.
- 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
[testimonial_sitemap title="Testimonial Sitemap" hierarchical="off"]
[testimonial_sitemap title="Testimonial Sitemap" order="date" exclude_taxonomies="cat1,cat2"]
| Example 1: This example displays a sitemap for testimonial posts with the title “Testimonial Sitemap” without a hierarchical display. Example 2: This example displays a sitemap for testimonial posts with the title “Testimonial Sitemap”, sorted by date, excluding posts from the cat1 and cat2 taxonomies. |
testimonial, the sitemap will be empty.