Sitemap is very important element of any website. Once you are done making your website, it is recommended that you create a sitemap for your website. However, many people are still confused about which type of sitemap to use. In this article we will talk mainly about HTML sitemap and how is it different than XML sitemap. We will also see how to add an HTML sitemap in WordPress.
Difference between XML and HTML sitemaps
The sitemap is a file that presents the complete information about the structure of your website. Sitemaps come in two flavors: XML and HTML.
An XML sitemap is written and generated in XML markup language. XML sitemap are mainly intended for use of search engines. XML sitemap contains the site’s main URL and all the other URLs within the site along with the associated metadata. You can add XML sitemaps in WordPress with various plugins available.
HTML sitemap is written in plain HTML format in a user-readable form. This sitemap contains just the information and pages/posts which any general user may be interested into. The HTML sitemap provides an effective means for your visitors to find contents. When you’re in any webpage and you are looking for any specific item like any page or contact info, and can’t find it then you can go to the sitemap of that page and find it there. If your site is user-friendly, you can get a better search rank too.
How to Add an HTML Sitemap in WordPress
With the help of Plugins you can easily add HTML sitemap. We will be using Hierarchical HTML Sitemap. To create sitemap with all all post and pages. Follow these steps to add Hierarchical HTML Sitemap in your website
3. The plugin do not have any settings to configure. So after it is activated, it is ready for use.
4. Now create a new page where you want sitemap to exist.
5. Copy and paste the following shortcode and save.
Note: there are number of parameters of the shortcode. You can check the plugin’s download page for the full list of parameters.
6. Now when you view the page in the frontend you should see a nice sitemap being created automatically by the plugin.
You can install the plugin using the similar above mentioned way. Upon activation you can add shortcode to display the sitemap in any page. You can read the documentation as well as configure the plugin by going to Settings > Wp Sitemap Page. This is a wonderful plugin that give you much more control in the display of posts and pages in sitemap.
If you want to display the pages only in the sitemap you can paste the following shortcode in your sitemap page.
Similarly to display the post by category try this shortcode.
Similarly you can display categories, tags, authors and many other information in the similar fashion using the shortcode specified in the plugins settings page.
There are few more plugins like Simple Sitemap, Kwayy HTML Sitemap etc that can help you with adding sitemap in your site. We hope that with the help of our article you can successfully add a HTML sitemap in your website.
Latest posts by Kantiman Bajracharya (see all)
- What are Different WordPress Theme Licensing Terms? - December 21, 2017
- 4 Tips to Optimize Your WordPress for Social Media Share - November 30, 2017
- What is WordPress? Is WordPress Free? Why is WordPress so popular? - November 22, 2017