Make WordPress Core

Opened 2 years ago

#55477 new enhancement

Add Custom Post Types Archive Pages to Sitemap

Reported by: delitestudio's profile delitestudio Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 5.9.2
Component: Sitemaps Keywords:
Focuses: Cc:


The CPT archive pages do not appear in the sitemap, and there are no suitable hooks to add them (e.g. wp_sitemaps_posts_query_args, wp_sitemaps_posts_pre_url_list, etc.).

In my opinion it is necessary:

  • automatically include all archive pages of custom posts with has_archive other than false, and
  • insert a hook to add additional links


Change History (0)

Note: See TracTickets for help on using tickets.