[wp-trac] [WordPress Trac] #30275: Exclude breaks wp_list_categories for non-hierarchical categories

WordPress Trac noreply at wordpress.org
Thu Nov 6 15:04:43 UTC 2014


#30275: Exclude breaks wp_list_categories for non-hierarchical categories
--------------------------+-----------------------------
 Reporter:  thomask       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I'm not sure if this is a bug or just some unhappy intent

 wp_list_categories( array (
   'taxonomy' => 'post_tag',
   'hide_empty' => false,
   'exclude' => '123'
 ) );
 return always "no category found" message. When "exclude" is not there, it
 works normaly, the same for any other option. Hierarchical taxonomies are
 ok, problem is only with non-hierarchical (even the custom ones).

 Problem can be solved by adding hierarchical=false parameter, but it is
 nowhere written, and not very obvious.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30275>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list