Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add an HTML Sitemap Page in WordPress (2 Ways)

An HTML sitemap is like a roadmap that shows people where to go. It acts as a visual guide that presents all your content in a clear, organized way, making it easy for visitors to explore and find exactly what they’re looking for.

Unlike XML sitemaps that search engines use, HTML sitemaps are designed to make it easy for your website visitors to explore your content and find what they are looking for.

In this guide, we’ll show you how to create a helpful HTML sitemap for your WordPress website, turning your content into a user-friendly and accessible library for your readers..

How to add an HTML sitemap page in WordPress

What’s the Difference Between XML and HTML Sitemaps?

An XML sitemap is a file that lists your website content in an XML format for search engines like Google and others.

You can submit your XML sitemap in webmaster tools to improve and control how the search engines crawl your website.

On the other hand, an HTML sitemap is for your actual website visitors. It is a simple page that lists all your posts and pages in an organized way.

Now that you know the difference, let’s take a look at how to add an HTML sitemap page to WordPress using two different WordPress plugins. You can use the quick links below to jump straight to the method you want to use:

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, then just keep reading.

Method 1: Add HTML Sitemap Page in WordPress With All in One SEO

We recommend using the All in One SEO plugin to add an HTML sitemap page in WordPress. It’s the best WordPress SEO plugin on the market, used by over 3 million websites, and it lets you create an HTML sitemap with a couple of clicks.

Note: There is a free version of All in One SEO Lite available, which includes the HTML sitemap feature below, but we will be using the premium version in our screenshots because it includes powerful features like smart sitemaps, redirection manager, SEO schema, and more.

The first thing you need to do is install the All in One SEO plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, the AIOSEO setup wizard will open, which will guide you through setting up the plugin and getting your SEO settings right.

Simply click the ‘Let’s Get Started’ button and follow the steps.

AIOSEO setup wizard

After that, you’ll be taken to the WordPress admin dashboard, where you’ll have a new menu option called ‘All in One SEO’.

Then, you need to go to All in One SEO » Sitemaps, click on the ‘HTML Sitemap’ menu option, and make sure the ‘Enable Sitemap’ toggle is turned on.

Enable HTML sitemap

Next, you can choose how you want to display your HTML sitemap.

For this tutorial, we will select the ‘Dedicated Page’ option, but you can also add it as a shortcode, block, widget, and more.

Then, enter the page URL where you want the HTML sitemap to display. The plugin will automatically create a new page for you.

Enter URL for HTML sitemap page

Once you’ve done that, scroll down to the ‘HTML Sitemap Settings’ section.

Here, you can customize how your HTML sitemap will display. You have control over what posts and pages will display, taxonomies such as categories and tags, sort order, and more.

Customize HTML sitemap settings

You can also turn on ‘Compact Archives’ to display your HTML sitemap in a compact date archive format.

This is similar to how we display our compact archives on our 404 pages here at WPBeginner.

After you are done customizing your HTML sitemap settings, make sure to click the ‘Save Changes’ button.

Save custom HTML page settings

Now, your visitors can view your HTML sitemap and more easily navigate around your website.

If you chose the ‘Dedicated Page’ option above, then you can visit the page by clicking the ‘Open HTML Sitemap’ button.

HTML sitemap example page

Method 2: Add HTML Sitemap Page in WordPress With Simple Sitemap

Simple Sitemap is a free plugin that lets you easily add an HTML sitemap to your WordPress website.

The first thing you need to do is install and activate the Simple Sitemap plugin. For more details, see our beginner’s guide on how to install a WordPress plugin.

Once the plugin is activated, you can open an existing page or create a new HTML sitemap page by navigating to Pages » Add New.

Adding an HTML Sitemap With Simple Sitemap Using Blocks

This plugin has Gutenberg blocks that you can use to simply add an HTML sitemap page.

All you need to do is click the ‘+’ icon, then select the ‘Simple Sitemap’ option.

Add simple sitemap block

Another block included with this plugin is the ‘Simple Sitemap Group’ that creates a branching visual sitemap. But we are going to use the ‘Simple Sitemap’ block for this tutorial.

Once you add the block, it will automatically create your HTML sitemap.

On the right-hand menu, you have customization options where you can choose to display ‘Posts’ or ‘Pages’, or both together.

In the box under ‘Select post types to display’, simply enter ‘Post’ or ‘Page’ to choose what you want to display.

Sitemap created add posts or pages

Next, you can change how the list displays by changing the ‘Orderby’ or ‘Order’ drop-downs.

You can also display the excerpt for the pages or posts listed and enable or disable links. However, we are going to keep the default plugin settings to keep our HTML sitemap simple and easy to browse.

Customize sitemap order and appearance

Once you’ve finished customizing your HTML sitemap page, click ‘Publish’ or ‘Save’ if you are updating an older page.

When your visitors go to your HTML sitemap, they’ll see a navigation page that looks similar to the one below.

Final block sitemap example

Adding an HTML Sitemap With Simple Sitemap Using Shortcodes

Another way to add an HTML sitemap to WordPress is by using a shortcode. This gives you more control over the placement of your HTML sitemap and works for those who are using the classic editor.

Simply create a new page by navigating to Pages » Add New, then give your new page a name.

Add new block for HTML sitemap

After that, click the ‘Plus’ icon to add a new block to your page.

Then, type ‘shortcode’ into the search box and select the ‘Shortcode’ block.

Add shortcode block

After that, simply copy and paste one of the following shortcodes into the text editor. The first shortcode will list your posts by category, and the second shortcode will list your pages.

[simple-sitemap-group]

[simple-sitemap]
Paste shortcode and publish

Once you’ve done that, click ‘Publish’ or ‘Update’ to save your changes.

If you need more help, then see our guide on how to add a shortcode to WordPress.

This is how the plugin will display your sitemap to your website visitors.

HTML sitemap posts and pages

Creating an HTML Sitemap With Simple Sitemap for Top Pages Only

Many site owners use WordPress as a CMS, with their main content published as pages instead of posts. For more details, see the difference between posts and pages in WordPress.

In this case, you would want your HTML sitemap to show pages in the proper hierarchical order.

Here is how you can add an HTML sitemap with only pages.

Simply add this shortcode to the page where you want to display your HTML sitemap. Follow the same steps above to add the shortcode to a new WordPress page:

[simple-sitemap]

This is how it will display your HTML sitemap with all your WordPress pages listed in a hierarchical list.

HTML sitemap page example

It also includes your parent and child pages listed in a nested fashion. For more details, see our guide on how to create a child page in WordPress.

Expert Guides on Improving WordPress Navigation

We hope this article helped you learn how to add an HTML sitemap page in WordPress. You may also want to see some other guides related to improving WordPress navigation:

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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

24 CommentsLeave a Reply

  1. Linh

    So far these 2 methods does not apply to my website since I’d like to choose only a specificied category to be showed up on the HTML sitemap. Neither AIOSEO or SimpleSitemap allows me to do that. Of course I’ve tried Advanced Settings (only AIO has it) but than I have to manually choose every single Posts or Pages which will be excluded from the Sitemap. This manually requirement simply kills the purpose of using plugins to create a HTML sitemap.
    Another thing about this AIO (that wpbeginner promotes it everytime and makes me feel it’s like a almighty Plugin) is with the Breadcrumb:
    This feature from AIO just does NOT follows URL logic! More specifically, it only shows nicely on your website until you click on it in order to get back to the previous page (or parent page), which every human do while surfing on any website. AIO’s gonna bring you to another pages (which is the archives page). Personally I don’t get it.
    To me, except from a SEO tools, AIO offers a too basic feature, not to say, useless when it comes to self-hosted website.

    • WPBeginner Support

      Thank you for your feedback, if you only wanted a few of your posts and pages on a specific page instead of a collection of all of your posts and pages we would recommend manually creating the list that you are wanting and that should achieve what you’re wanting unless we’re misunderstanding the goal you’re trying for.
      For your statement on breadcrumbs, breadcrumbs are there to link to the organization of your content and not specifically be a back button, normally that would be done by the browser or an alternate method.

      Admin

  2. Jiří Vaněk

    I’ve always considered a sitemap as a tool for improving SEO and showing Google or other search engine bots the content of my pages. It’s interesting how sometimes you focus so much on search engines that you forget to make the website more accessible for regular users. I created an HTML sitemap and placed it on the website so that people can navigate the content more easily if they want to. Thanks for the new insight that a sitemap can serve users just as well as it does robots.

  3. Dennis Muthomi

    Hi WPBeginner, thank you for this informative article
    I’ve always focused on XML sitemaps for search engines, but I now see the value of HTML sitemaps for user navigation.
    Thanks for the instructions for using the All in One SEO.

  4. Robert Thompson

    WordPress wants me to pay them $300 just to upgrade to their business plan so that I can have access to their plugins. I’ll pass on their offer.

  5. faraz ahmed

    How can i show sitemap specific category wise?

    • WPBeginner Support

      The second plugin from this article should allow you to separate the content by category.

      Admin

  6. Carol

    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?

  7. Shawn

    I’d like to generate a sitemap page with all my woocommerce shop categories and products. Can this plugin do that?

  8. Raghvendra singh Jadon

    can’t we make a sitemap page like privacy policy or contact us

  9. deepa

    is it possible if we can create our own sitemap

  10. shirish

    really very nice and useful article.

  11. ibu solihatun

    The article is very interesting. Helped me understand many things and will be happy soon to write like again.

  12. Memory

    Thank you so very much, this site map is amazingly fine-tuned, absolutely perfect, and saved me a great deal of time.

  13. srekanth

    how can i create the xml sitemap like html site is there any possibilites

  14. adilop

    Sir, sitemap of yoast plugin isn’t enough?

      • adilop

        Thanks for your suggestion sir.

  15. Blane Beckwith

    I added an HTML site map to my webpage, and it made a very nice looking, and functional archive page.

  16. Connor Rickett

    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!

  17. Natascha

    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

    • WPBeginner Support

      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.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.