Missing meta_query
-
If you try to filter by customfield_name/customfield_value and also have customfield_orderby set, nothing seems to be shown. One or the other works.
Looking at your code you seem to have a bug around line 101 in CatList.php
No meta_query is set for the customfield_name/customfield_value pair. I think they need to be in an array which is itself in an array ‘meta_query’ in $args.
See examples of WP_Query definition in the Codex- the format is like:
'meta_query' => array( array( 'key' => 'age', 'value' => '24', 'compare' => '=', ) )
Thanks for an otherwise very useful plugin.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Missing meta_query’ is closed to new replies.