[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.

  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 the testimonial posts are sorted.
    • 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

[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.
If you do not have any posts of the type testimonial, the sitemap will be empty.