[wp-trac] [WordPress Trac] #57300: parse_tax_query() does not handle array query param when taxonomy has rewrite set to hierarchical

WordPress Trac noreply at wordpress.org
Wed May 10 18:29:02 UTC 2023


#57300: parse_tax_query() does not handle array query param when taxonomy has
rewrite set to hierarchical
---------------------------+------------------------------
 Reporter:  chamois_blanc  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Taxonomy       |     Version:  6.1.1
 Severity:  major          |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------------

Comment (by pskli):

 Thank you @oglekler!

 As you can see in my previous comment (and provided Gist), the critical
 thing is to have the `$args['rewrite']['hierarchical']` taxonomy
 registration argument set to `true`.

 Not the `$args['hierarchical']` argument :)

 Can you let me know if that was the case? And maybe share the test code
 you've used?

 Thank you!

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


More information about the wp-trac mailing list