New answers tagged meta-query
0
votes
How to properly escape values in meta query
The problem is that you've interpreted wpdb::esc_like as a literal copy paste, and not a direction, and used it as a static function, when it is not a static function.
Good:
global $wpdb;
$foo = $wpdb-...
1
vote
Why isn't my `meta_query` array functioning properly?
I already got it. Was missing an extra array() in the meta_query.
My updated code is this:
I'd like to thank this website. Sometimes just posting the question helps me figure it out. What a cool ...
0
votes
WP_Query multiple value not working
This is waaaay after the fact, but maybe it'll help someone else. You're looking for an IN comparison here - where the value is IN a group of values.
Here's what it'd look like:
$args['meta_query'][] =...
Top 50 recent answers are included
Related Tags
meta-query × 1009wp-query × 465
custom-field × 192
custom-post-types × 143
post-meta × 113
query × 79
order × 67
advanced-custom-fields × 64
query-posts × 61
search × 46
php × 43
meta-value × 42
loop × 41
user-meta × 40
pre-get-posts × 40
array × 35
date × 30
tax-query × 30
filters × 27
mysql × 27
get-posts × 27
sort × 26
metabox × 25
custom-taxonomy × 23
wp-user-query × 23