In this tutorial, I will show you how to dynamically display an HTML Sitemap for Custom Post Types in WordPress without a plugin. Dynamically means that the Sitemap updates automatically with every new Custom post added. Yes, there are plugins that add an HTML Sitemap to your blog. But I encourage you to read my previous post about unnecessarily adding plugins to your theme, and you don´t need a plugin for such a simple task.

In a previous tutorial, I showed you how to Add a Dynamic HTML Sitemap in WordPress Without a Plugin, that did not include Custom Post Types. In this tutorial, I will show you how to enhance that code to include Custom Post Types.


For a WordPress blog, pagination refers to displaying a limited number of posts per page. Pagination allows users the ability to navigate much easier and deeper into the archives. In this post, I will show that my previous tutorial about adding Pagination without a plugin in WordPress, can also be used on Custom Post Types without any modifications.

I will also show the steps I took to test my previous tutorial´s pagination code and show that it is still valid for custom post types.