gambitph / Titan-Framework

The easiest to use WordPress option framework.
http://www.titanframework.net
377 stars 137 forks source link

Querying Meta fields, using Meta_Query #350

Open ghost opened 8 years ago

ghost commented 8 years ago

I have an array, in a meta_query as below:

array( 'key' => 'agp_art_size_height', 'value' => $_GET['height'], 'type' => 'CHAR', 'compare' => 'LIKE', );

Problem is, I don't think that's comparing against my TF option with the ID agp_art_size_height. Please let me know how this is supposed to be done, since the native meta_query doesn't work?

ktmn commented 7 years ago

In case anyone is still wondering, you need to prefix the key with your Titan Framework namespace

'key' => 'namespace_agp_art_size_height'