[wp-trac] [WordPress Trac] #16742: Meta query doesn't work with $wp_query->set()
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 3 21:21:37 UTC 2011
#16742: Meta query doesn't work with $wp_query->set()
--------------------------+-----------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
The following doesn't work, apparently:
{{{
add_action( 'pre_get_posts', function( $query ) {
$query->set('meta_key','oqp_guest_email');
$query->set('meta_value',$dummy_email);
} );
}}}
Source: http://wordpress.org/support/topic/pre_get_posts-problem
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16742>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list