[wp-trac] [WordPress Trac] #27810: wp_query taxonomy query by name doesn't seem to work if there's a space in the name

WordPress Trac noreply at wordpress.org
Tue Apr 15 08:09:04 UTC 2014


#27810: wp_query taxonomy query by name doesn't seem to work if there's a space in
the name
--------------------------+-----------------------------
 Reporter:  neonWired     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 if you add a taxonomy query to wp_query, for example:

 {{{
 $args['tax_query'] = array(
                         array(
                                 'taxonomy' => 'careercategory',
                                 'field' => 'name',
                                 'terms' => array('Business Manager')
                         )
                 );
 }}}

 It doesn't work if there's a space in the term. e.g. 'Business Manager' in
 this example.

 The expected output is all posts with the term 'Business Manager', the
 actual output is empty.

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


More information about the wp-trac mailing list