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

WordPress Trac noreply at wordpress.org
Tue Nov 24 08:29:02 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 jsmoriss):

 To filter posts by complex meta, you would have to run a query to get all
 posts, loop through each and figure out which ones need to be excluded,
 and then add the excluded post IDs to the 'wp_sitemaps_posts_query_args'
 query. Running double queries does not sound optimal to me.

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


More information about the wp-trac mailing list