[wp-trac] [WordPress Trac] #63929: WordPress sitemap not indexing correctly when custom post types are used
WordPress Trac
noreply at wordpress.org
Thu Sep 4 16:37:06 UTC 2025
#63929: WordPress sitemap not indexing correctly when custom post types are used
--------------------------+-----------------------------
Reporter: abbuabbu | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
While testing WordPress 6.6 on a live environment, I noticed that the
sitemap generated via wp-sitemap.xml is not indexing custom post types
correctly.
Steps to reproduce:
Install a fresh WordPress 6.6 setup.
Register a custom post type (e.g., [cement_price]cementsprice.coms) via
register_post_type().
Publish at least 10 posts under this custom post type.
Visit the sitemap (/wp-sitemap.xml).
Expected result:
All published custom post type entries should appear in the sitemap.
Actual result:
Some custom post type entries are missing from the sitemap, even when
published.
Example Environment:
This issue was first noticed on https://cementsprice.com/
while running tests on cement price listings. The environment is:
WordPress 6.6
PHP 8.1
Nginx 1.22
No caching plugins enabled
Additional Notes:
Deactivating all plugins and switching to the Twenty Twenty-Five theme
does not resolve the issue. It looks like the core
wp_sitemaps_get_server() function might not properly register custom post
types in all cases.
Type: defect (bug)
Severity: normal
Version: 6.6
Component: General
Contributor Focuses: rest-api, performance, seo
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63929>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list