[wp-trac] [WordPress Trac] #40387: WP_Query bug with product post type with search parameter on

WordPress Trac noreply at wordpress.org
Tue Apr 11 13:56:13 UTC 2017


#40387: WP_Query bug with product post type with search parameter on
------------------------------+-----------------------
 Reporter:  subrataemfluence  |       Owner:
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:
Component:  Query             |     Version:  4.7.3
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+-----------------------

Comment (by boonebgorges):

 @subrataemfluence Thanks for continuing to look.

 To be clear, you must be running at least *one* modification, in addition
 to WooCommerce: your `WP_Query` call. How are you doing it? Is it in a
 theme template? Or in a hook callback? For purposes of testing, I did mine
 like this:

 {{{
 add_filter( 'the_content', function( $content ) {
     $query = new WP_Query...
 } );
 }}}

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


More information about the wp-trac mailing list