Have you heard about HTML sitemap? Well, it offers easy navigation for your website visitors. To be more precise, it’s the bulleted outline text version of a website. The visitors can use the sitemap to easily find/locate any topic which they can’t find searching through the whole website menus. The best part is that HTML sitemap is both user-friendly and search engine friendly. In fact, Google’s department of Web team has already acknowledged the significance and importance of HTML sitemap.
Well, you have already revealed the importance of HTML sitemap in the previous section. Are you now quite keen to know how to create an HTML sitemap? Please note that HTML sitemap can be created using a WP plugin. Alternatively, it can also be created without using a WP plugin. So, which should be your preferred choice of option when it comes to creating an HTML sitemap? Well, the second approach (i.e. creating an HTML sitemap without using any external or third-party WP plugin) has various advantages which are briefly discussed below.
Key Advantages of Creating an HTML Sitemap w/o a WP Plugin
i) It offers better security and lesser threats to website hacks/vulnerability. That’s primarily because the WP plugins are the significant source of website spams and hacks.
ii) The WP plugins are not correctly maintained and updated. Specifically, this becomes an annoying problem when a new version of WordPress comes out, and the plugins are not updated.
iii) Often, these WP plugins do not work according to your requirements.
Considering these problems, you should now consider creating the HTML sitemap w/o using a WP plugin. The process is quite easy, simple, and hassle-free. For your quick reference, the step-by-step instructions on how to:
Create an HTML sitemap w/o a WP Plugin
Create an HTML Sitemap w/o a WP Plugin with 4 Easy Steps
Step 1 — Create an HTML sitemap template file: This is the very first step where you will need to create an HTML sitemap template file. You can add the new file via FTP.
Step 2 — Copy and Paste the Code into a template page, for this I name the file sitemap.php
Step 3 — Edit the Code: Please replace the content of with the below code snippet.
Note, you can also add a comment to the HTML sitemap template file (if required).
Step 4 — Publish your WP HTML sitemap page: If you are already logged into your WP Dashboard, then please click on Pages >> Add New. This will allow you to create a new WordPress page. Now, make sure to check sitemap template is selected in the Page Attributes dropdown box. Finally, click on the Publish button. That’s it. You can now play around and customize your WP HTML sitemap template as per your preference.
Full Stack Developer, Digital Marketer, and InfoSec enthusiast. He received his Bachelor’s Degree from the University of Western Sydney and his Business Diploma from Georgian College before joining various marketing positions in search portals, e-commerce, higher education, and addiction recovery services.Follow @ twitter
Adding the_excerpt in WP
How to add auto excerpts to a WP Theme: For this example, I’m using the WP Bootstrap Starter theme (remember to create a Child theme, or you will lose any edits after you update). You need to locate content.php file, it should be under the template-parts folder: Find the code: Approx. line 33. Replace with:… Read More
Fixing the blog page title in WP
If your blog page is pulling the title of the last/latest post, here is a quick and dirty fix Add this to your title tags: Examples: