Are you looking to build a HTML sitemap in WordPress? Unlike XML sitemaps that you submit to search engines for better crawling, HTML sitemaps show an organized list of your pages for your users. In this article, we will show you how to add an HTML sitemap page in WordPress.
What’s The Difference Between XML and HTML Sitemaps
An XML sitemap is written or generated in XML markup language preferred by search engines. You can submit your site’s XML sitemap to webmaster tools to improve and control your site’s crawling rate by search engines.
An HTML sitemap on the other hand is supposed to be geared towards your actual website visitors. It is written or generated in plain HTML, and it usually lists all the pages/posts that are available on your WordPress site.
Now that you know the difference, lets add a HTML sitemap page in WordPress.
Video Tutorial
If you don’t like the video or need more instructions, then continue reading.
Adding an HTML Sitemap With All Posts and Pages
First thing you need to do is install and activate the Hierarchical HTML Sitemap plugin. The plugin works out of the box and there is no settings page for it.
Simply create a new page where you want to display your sitemap. Next, add this simple shortcode inside the content area.
[htmlmap showpages]
This is how the plugin will show your sitemap. At top, it will show your categories with the number of posts in each category following by a list of your posts and then finally your pages.
Even though the plugin does not have a settings page, the shortcode itself comes with a number of parameters. This allows you to setup your HTML sitemap in anyway you want. See the plugin’s download page for a full list of parameters, and how to use them.
Creating an HTML Sitemap in WordPress Showing Only Pages
Many site owners use WordPress as a CMS with their main content served as pages (See our guide on the difference between posts and pages).
In this case, you would want to your HTML Sitemap to show pages in the proper hierarchical order. Here is how you can add HTML Sitemap with only pages.
First thing you need to do is install and activate the WP Sitemap Page. Upon activation, simply add this shortcode to the page where you want to display your HTML sitemap.
[wp_sitemap_page only=”page” display_title=”false”]
This is how it will display your HTML sitemap with all your WordPress pages listed in a hierarchical list.
WP Sitemap Page comes with a lot of options and you can configure them by visiting Settings » WP Sitemap Page in your WordPress admin area.
We hope this article helped you learn how to add an HTML sitemap page in WordPress. You may also want to see our list of 9 best WordPress SEO plugins and tools that you should use.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Cannot get POSTS to show like pages do, so it’s useless for me. On my site, pages are static stuff, About, etc. But posts are the new items that people want to see right away. I do research on various topics and that is the heart and soul of my blog. I want them to see the new stuff in order on that subject, in a list. I really don’t care about Pages, Privacy, Cookies, About, stuff you look at once, maybe, if ever
I have experimented with the code, get only the CODE on the finished page.
What can I do?
Hi Carol,
Please see our article on how to add topics in WordPress navigation menus.
I’d like to generate a sitemap page with all my woocommerce shop categories and products. Can this plugin do that?
can’t we make a sitemap page like privacy policy or contact us
is it possible if we can create our own sitemap
really very nice and useful article.
The article is very interesting. Helped me understand many things and will be happy soon to write like again.
Thank you so very much, this site map is amazingly fine-tuned, absolutely perfect, and saved me a great deal of time.
how can i create the xml sitemap like html site is there any possibilites
Sir, sitemap of yoast plugin isn’t enough?
Please read the section about the difference between XML and HTML sitemaps.
Thanks for your suggestion sir.
I added an HTML site map to my webpage, and it made a very nice looking, and functional archive page.
Never a bad idea to have a sitemap for your visitors. Just as a side note, when/if you submit your sitemap to Google, make sure it’s the XML one!
What I do miss though is, why would someone need a HTML sitemap or when is it recommended? Maybe a short pro and cons list would help. Thanks
It is more useful for sites with static and non-chronological content, i.e. pages. A sitemap page can help users see all the pages in their hierarchical order.