davidsneighbour / colossus-wp-options-framework

The easiest to use WordPress option framework.
4 stars 0 forks source link

Querying Meta fields, using Meta_Query #29

Open codeclinic opened 4 years ago

codeclinic commented 4 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?

Ref: https://github.com/gambitph/Titan-Framework/issues/350

codeclinic commented 4 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'