[wp-trac] [WordPress Trac] #47614: The meta_query of wp_query only support type of 'post'.

WordPress Trac noreply at wordpress.org
Thu Jun 27 03:20:16 UTC 2019


#47614: The meta_query of wp_query only support type of 'post'.
--------------------------+-----------------------------
 Reporter:  issaczhuang   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Query         |    Version:  5.2.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The meta_query of wp_query only support type of 'post'.

 On class WP_Query line 2269.

 I could not use the meta_query if I register other types of 'post_type'.

 {{{
 $clauses = $this->meta_query->get_sql( 'post', $wpdb->posts, 'ID', $this
 );
 }}}

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


More information about the wp-trac mailing list