Hierarchical HTML Sitemap

Оptions Hierarchical HTML Sitemap

By default, sitemap is displayed with cloud of categories without pages list (call shortcode without parameters —[htmlmap] ).

Use following options to set user output:

  • showpages – except posts, option enables displaying list of sitepages (example: [htmlmap showpages] displays full map with posts and pages.
  • hidecloud – disable categories’ cloud (example:[htmlmap hidecloud]).
  • exclude_cat – list of categories’ IDs which you don’t need to display in map (example: [htmlmap exclude_cat=1,34] exclude categories with ID 1 and 34 from map and their posts as well).
  • exclude – list of posts’ or pages’ IDs which you don’t need to display in map (example: [htmlmap exclude="3546,7398"] displays map without post with ID 3546 and without page with ID 7398).

New options available with version 1.1:

  • showdescription – enables displaying descriptions for each category (example: [htmlmap showdescription]).
  • hidedate – hides articles’ published dates in map (example: [htmlmap hidedate]).

Оptions Hierarchical HTML Sitemap Pro

To display sitemap you need:

  1. Through menu Pages → Add new create page for HTML sitemap.
  2. Enter name and address of page in you discretion —example, Sitemap or All blog articles.
  3. In content field add shortcode call: [htmlsitemap] (the simplest variant, settings are available).
  4. 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:

  1. posts_orderby='post_date' – publication date,
  2. posts_orderby='post_title' – title,
  3. posts_orderby='slug' – shortcut (used in URL address),
  4. posts_orderby='ID' – unique entry number.

posts_order – specifies entries sort order.

Possible values:

  1. posts_order='ASC' – ascending,
  2. posts_order='DESC' -descending.

cat_orderby – specifies parameter by which categories or custom taxonomies need to be sorted.

By default – publication date. Possible values:

  1. cat_orderby='term_id' – unique  category number,
  2. cat_orderby='name' – name,
  3. cat_orderby='slug' – shortcut (used in URL address).

cat_order – specifies sort order of categories.

Possible values:

  1. cat_order='ASC' – ascending,
  2. 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:

  1. unique (without value) – displays entry in sitemap once (first counter is shown, others are deleted).
  2. unique='in_parents_only' – entry is displayed once inside thread (in first counter category), in child and neighboring categories will be excluded.
  3. 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

Starting with version 2.1 we have added very convenient tool that makes it easy to customize sitemap without studying obscure options of shortcode!
Shortcode generator page for Hierarchical HTML Map Pro (starting with version 2.1)

Shortcode generator page for Hierarchical HTML Map Pro (starting with version 2.1)