WordPress.org

Plugin Directory

HTML Page Sitemap (Block and Shortcode)

HTML Page Sitemap (Block and Shortcode)

Descriere

This simple plugin adds an HTML (Not XML) sitemap of your pages (not posts) by using the shortcode [html_sitemap]. This plugin can display a sitemap with specific depths, from a specific parent page and include/exclude specific pages by ID. The sitemap uses the unordered HTML list tags <ul> and <li>.

New for 2.0 is the HTML Sitemap Block, now you can add a HTML Sitemap using the WordPress Block Editor.

Attributes include sort_column, sort_order, exclude, include, depth, child_of, meta_key, meta_value, authors, number, offset, post_type, and post_status parameters from the wp_list_pages function. In addition you can also set class, id, and ordered_list_type to further customize the html page sitemap.

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

Block / Shortcode Tag Attribute Options

The following wp_list_pages tag attribute options are supported:

Please see documentation for the wp_list_pages function for reference.

Demos

In addition the following tag attributes are available exclusively for this plugin:

The ordered_list_type attribute options in more detail:

Note: This plugin only works with Hierarchical Custom Post Types such as pages. This plugin will not work if your post type is not hierarchical. Not setting an ordered_list_type will use an unordered list (default).

Exemple

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

[html_sitemap]

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]

Example shortcode with roman numbering in capitalization, with custom field „featured-list” and custom value „yes”

[html_sitemap ordered_list_type="I" meta_key=featured-list meta_value=yes sort_column=post_date]

For the latest information visit the website.

http://www.pluginspodcast.com/plugins/html-page-sitemap/

Contributors

Angelo Mandato, founder of Painless Analytics and FrontPup – Plugin author

Capturi ecran

Blocuri

Acest modul oferă 1 bloc.

HTML Sitemap HTML Sitemap WordPress plugin block.

Instalare

Automatic Plugin Installation

Install using the built-in plugin installer:

  1. Go to Plugins > Add New.
  2. Type in „HTML Page Sitemap” in Search Plugins box.
  3. Find „HTML Page Sitemap” in the search results.
  4. Click Install Now to install the WordPress Plugin.
  5. Click Activate to activate it.
  6. Add the shortcode [html_sitemap] to the page(s) of your choice.

Manual Plugin Installation

  1. Download this plugin to your desktop.
  2. Extract the plugin zip file (or compressed folder) to your desktop.
  3. With your FTP program, upload the plugin folder to the wp-content/plugins folder in your WordPress directory online.
  4. Go to Plugins screen and find „HTML Page Sitemap” plugin in the list.
  5. Click Activate to activate it.
  6. Add the shortcode [html_sitemap] to the page(s) of your choice.

Întrebări frecvente

Why is there no settings page for the plugin?

I put together this plugin in less than 2 hours, this readme.txt actually took longer to create. This plugin is meant to be simple and easy to use. To keep it simple, it doesn’t add settings to your database or clutter to your admin screens.

How do I style the html sitemap?

The HTML sitemap can be styled by specifying your own CSS class or unique element ID. The classes and ID are added to the top level <ul> element of the sitemap.

Does this plugin support Blocks?

YES! As of version 2.0, you can now add an HTML Sitemap block to your page and customize all of the parameters.

Does the addition of the HTML Sitemap Block impact the performance of my website?

NO! The new HTML Sitemap Block is a wrapper around the [html_sitemap] shortcode that utilizes the built-in wp_list_pages function.

Do I have to use the new Blocks feature to use this plugin?

NO! The original shortcode still works as it did in version 1.3.

Recenzii

1 iunie 2026
Very good lightweight plugin that creates a simple hierarchical sitemap via short-code. The short codes support a very decent set of parameters to customise and tweak your site map. Recommended & many thanks to the author 🙂
24 aprilie 2025
In my experience, the HTML Page Sitemap- plug-in does exactly what it says. It lets one create a clean looking and functional html-sitemap, which has proved very useful to me. Cudos to the developer.
15 august 2024 1 răspuns
I have had this Plug-in installed on every site I own or manage (currently 46 sites) for years, and it is invaluable to me to see the hierarchy tree and get to the page I want. I never have the tree public, but access it in the hidden admin areas we have created. It lets me see all the Pages at once, even the ones that are hidden to others in the menus, by member type or other criteria. I Highly Recommend this Plug-In.. It’s simple, accurate, fast, and just makes sense with no silly unneeded frills
8 iunie 2021
Era exatamente isso que eu estava precisando para um site de uma ONG. That’s exactly what I needed for an NGO website. Mano, nem pense em desistir de atualizar este plugin. ♥‿♥ Bro, don’t think about giving up on updating this plugin. ♥‿♥ Muitíssimo obrigado. Thank you so much.
Citește toate cele 23 de recenzii

Contributori și dezvoltatori

„HTML Page Sitemap (Block and Shortcode)” este un software open-source. La acest modul au contribuit următoarele persoane.

Contributori

„HTML Page Sitemap (Block and Shortcode)” a fost tradus în 2 locale. Mulțumim traducătorilor pentru contribuția lor.

Tradu „HTML Page Sitemap (Block and Shortcode)” în limba ta.

Te interesează dezvoltarea?

Răsfoiește codul, vezi depozitarul SVN, sau abonează-te la jurnalul de dezvoltare prin RSS.

Istoric modificări

2.1.3

2.1.2

2.1.1

Release skipped.

2.1

2.0

1.3.9

1.3.8

1.3.7

1.3.6

1.3.5

1.3.4

Complete Changelog

Complete changelog available on GitHub

Meta

Evaluări

4.3 din 5 stele.

Contributori

Suport

Ai ceva de zis? Ai nevoie de ajutor?

Vezi forumul pentru suport

Donează

Vrei să sprijini dezvoltarea acestui modul?

Donează pentru acest modul