[wp-trac] [WordPress Trac] #56154: pre_get_posts fix to show menu on CPT Archives broken in 6.0

WordPress Trac noreply at wordpress.org
Thu Jul 7 14:36:47 UTC 2022


#56154: pre_get_posts fix to show menu on CPT Archives broken in 6.0
-------------------------------------------+------------------------------
 Reporter:  joshpaynedesigns               |       Owner:  (none)
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  Menus                          |     Version:  6.0
 Severity:  normal                         |  Resolution:
 Keywords:  has-testing-info dev-feedback  |     Focuses:
-------------------------------------------+------------------------------

Comment (by joshpaynedesigns):

 So removing the tax_query line and that did fix my issue since I am
 sorting my posts by meta_key. I guess the tax_query isn't needed anymore.
 If I remove the function completely the menu still disappears on my tax
 page that's sorted by meta_key. I'm not sure how the wp_get_nav_menu_items
 would fix this issue but for now removing the tax_query line worked.

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


More information about the wp-trac mailing list