[wp-trac] [WordPress Trac] #51860: wp-sitemap includes empty post entries returned by filters

WordPress Trac noreply at wordpress.org
Wed Nov 25 15:56:00 UTC 2020


#51860: wp-sitemap includes empty post entries returned by filters
-------------------------+------------------------------
 Reporter:  jsmoriss     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Sitemaps     |     Version:  5.5
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by Cybr):

 I faced the same issue; discussed at Slack
 https://wordpress.slack.com/archives/CTKTGNJJW/p1604995479019700.

 A proper workaround to this would be to maintain an active cache with
 page/term/author IDs you wish to exclude. Then, inject those into the
 query as exclusions. However, this is not an easy feat since WordPress is
 quite dynamic.

 I believe Yoast SEO provides such a system with "Indexables," something
 that's challenging to incorporate and maintain.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51860#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list