To display sitemap you need:
- Through menu Pages → Add new create page for HTML sitemap.
- Enter name and address of page in you discretion —example, Sitemap or All blog articles.
- In content field add shortcode call: [htmlsitemap] (the simplest variant, settings are available).
- For sitemap settings use shortcode options or special generator in menu Settings → Shortcode generator HTML Map.
Shortcode options allow you to customize sitemap to your needs. Below there are examples for specific requirements:
[htmlmap hidecloud]
– sitemap without cloud of categories at the beginning.[htmlmap exclude_cat="12,5"]
– excludes from sitemap categories with ID 12 and 5.[htmlmap hidedate]
-all entries in sitemap will be displayed without date.[htmlmap unique]
– repetition of entries in sitemap will be excluded.
Options can be combined, for example:
[htmlmap hidecloud hidedate posts_orderby="post_title"]
– displays sorted by title entries without date, cloud categories will not be displayed.
[htmlmap post="product" taxonomy="product_cat" hidepages]
– displays map of WooCommerce products by categories, standard entries and pages will not be displayed.
[htmlmap post="post,product" taxonomy="category,product_cat"]
– displays site entries grouped by categories and WooCommerce products grouped by categories of products and also map of site pages.
Shortcode options
hidecloud – hides cloud categories/taxonomies (by default, displays one cloud on one taxonomy)..
exclude – specified comma-separated ID entries, pages or custom entries which need to be excluded from map.
exclude_cat – these comma-separated ID categories or custom taxonomies which need to be excluded from sitemap.
showdescription – displays description of each category or custom taxonomy just after its name.
hidedate – hides entry publication date which, by default, displayed before name.
posts_orderby – specifies parameter by which to sort standard or custom entries.
By default – publication date. Possible values:
posts_orderby='post_date'
– publication date,posts_orderby='post_title'
– title,posts_orderby='slug'
– shortcut (used in URL address),posts_orderby='ID'
– unique entry number.
posts_order – specifies entries sort order.
Possible values:
posts_order='ASC'
– ascending,posts_order='DESC'
-descending.
cat_orderby – specifies parameter by which categories or custom taxonomies need to be sorted.
By default – publication date. Possible values:
cat_orderby='term_id'
– unique category number,cat_orderby='name'
– name,cat_orderby='slug'
– shortcut (used in URL address).
cat_order – specifies sort order of categories.
Possible values:
cat_order='ASC'
– ascending,cat_order='DESC'
– descending.
hideposts_on_level – hides posts on specified hierarchy level (For example, value 1 hides entries in all major categories, value 2 – hides all entries in subcategories, parent of which – main category); this option does not hidecategories, only their entries.
display – limits maximum number of entries that display in each category.
unique – controls entries uniqueness in sitemap.
Possible values:
unique
(without value) – displays entry in sitemap once (first counter is shown, others are deleted).unique='in_parents_only'
– entry is displayed once inside thread (in first counter category), in child and neighboring categories will be excluded.unique='in_children'
– displayed only in categories which do not have subcategories.
post_type – post types (separated by commas) for which you need to built sitemap.
taxonomy – list (separated by commas) of taxonomies for which you need to built sitemap.
onlypages – shows only hierarchical pages list in sitemap.
include_pages – displays in sitemap only those pages that are listed in this parameter.
SHORTCODE GENERATOR HTML MAP
