[wp-trac] [WordPress Trac] #60984: WP_Query is returning the two same post instead of one

WordPress Trac noreply at wordpress.org
Tue Oct 15 01:00:59 UTC 2024


#60984: WP_Query is returning the two same post instead of one
--------------------------+------------------------------
 Reporter:  tremidkhar    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  6.5
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by rokter2024):

 What could cause WP_Query to return duplicate posts when using
 {{{
 pre_get_posts
 }}}
  with specific conditions, and how can this be resolved?

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


More information about the wp-trac mailing list