Make WordPress Core

Opened 5 years ago

#55477 new enhancement

Add Custom Post Types Archive Pages to Sitemap

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

Description

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

Thanks!

Change History (0)

Note: See TracTickets for help on using tickets.