• Access & Security 95
  • Administration 172
  • Advertisement 92
  • Audio & Video 66
  • Author & Content 99
  • Comments 96
  • Communication 110
  • Communities & Forums 84
  • Development 47
  • E-Commerce 76
  • Email Management 53
  • Events & Calendars 80
  • Language 25
  • Map & Weather 44
  • Migration & Conversion 28
  • Miscellaneous 254
  • Mobile 15
  • Photos 143
  • Plugins 260
  • SEO & Site Speed 118
  • Social 186
  • Theme Enhancement 169

  • Add this plugin to a List

    You need to be logged in to add this plugin to your list.

    HTML Page Sitemap

    Add to List

    This simple plugin adds an HTML (Not XML) sitemap of your pages (not posts) by entering the shortcode [html_sitemap] in the page content. This simple plugin is configured with the [html_sitemap] shortcode. This plugin can display a sitemap with specific depths, from a specific parent page and include/exclude specific children. Shortcode attributes include sort_column, sort_order, exclude, include, depth, child_of, meta_key, meta_value, authors, number, offset, post_type, and post_status, everything the wp_list_pages function accepts. In addition to the wp_list_pages options you can also set class, id, and ordered_list_type options.

    This plugin is perfect for those who use WordPress as a CMS.

    Please see documentation for the wp_list_pages for a complete list of options.

    The following options may be configured in addition to options documented in wp_list_pages:

    The class and id attributes may specified set class or id values for the initial HTML Page Sitemap <ul> list tag.

    The child_of attribute value can be a numeric page ID (integer), or use the custom value CURRENT or PARENT. The value “CURRENT” will use the current page’s ID. The value “PARENT” will uses the curent page’s parent ID.

    The ordered_list_type attribute is an HTML Page Sitemap plugin exclusive option for specfiying an ordered list type. Not setting a ordered_list_type will use an unordered list (default).

    • ordered_list_type="1" – The list items will be numbered with numbers
    • ordered_list_type="A" – The list items will be numbered with uppercase letters
    • ordered_list_type="a" – The list items will be numbered with lowercase letters
    • ordered_list_type="I" – The list items will be numbered with uppercase roman numbers
    • ordered_list_type="i" – The list items will be numbered with lowercase roman numbers

    Note: This plugin only works with Hierarchical Custom Post Types. This plugin will not work if your post type is not heirarchical.


    First example shows how to add a sitemap for the entire site.


    Example shortcode will add a sitemap to a page displaying a depth limit of 3 and exclude page ID 708.

    [html_sitemap depth=3 exclude=708]

    Example shortcode will add a sitemap to a page displaying only children and grandchildren of the current page.

    [html_sitemap depth=2 child_of=CURRENT]

    Example shortcode will add a sitemap to a page displaying children and grandchildren of the parent page (would include the curent page as well).

    [html_sitemap depth=2 child_of=PARENT]

    Example shortcode will add a sitemap displaying the page modified date with the pages sorted by the menu order number.

    [html_sitemap show_date=modified sort_column=menu_order]

    Example shortcode excluding multiple pages with ids 708, 1024 and 42.

    [html_sitemap exclude="708,1024,42"]

    Example shortcode will add a class attribute to the <ul> tag.

    [html_sitemap class="custom-class"]

    Example shortcode will add an id attribute to the <ul> tag.

    [html_sitemap id="custom-element-id"]

    Example shortcode will display an ordered list using lowercase letters with a depth of 1.

    [html_sitemap ordered_list_type="a" depth=1]

    For the latest information visit the website.


    Though html-sitemap still works, the new HTML Sitemap shortcode is html_sitemap. The dash/hyphen may not get processed correctly if other plugins use the same prefix such as the Syntax Highlighter plugin. read more, and more


    Angelo Mandato, CIO RawVoice and host of the Plugins Podcast – Plugin author

    Follow us on Twitter

    Rate This Plugin

    Please Login to Rate this Plugin!




    0 Votes
    Not Rated Yet Stats

    Last Updated668 Days ago
    Published8 years ago

    Report Wrong Category!