How to include /post/2/ and /post/3/ in XML sitemap?

[ad_1]

Hello @angelseee,
 
Thank you for contacting Rank Math support.
 
If the paginated posts are created manually as physical posts in the backend, then they will automatically be included in the sitemap. However, if they are generated dynamically, our plugin won’t include them in the sitemap. Google should still be able to discover them from the internal links in the main post.
 
If you want to include the paginated post URLs in the sitemap, you will have to do that manually using the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-urls-in-sitemap
 
Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
 
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer