meat_query and serialized data
-
I’m having trouble matching a data that is a serialized array.
I had assumed that the following code would work but it doesn’t. I only want to return records for which the key is defined and the serialized data contains the key value pair where the value is true.$args = array( 'post_type' => 'page', 'orderby' => 'title', 'order' => 'ASC', 'meta_query' => array ( array ('key' => '_fbfp', 'value' => '%isfanpage%true%', 'compare' => 'LIKE' ) ) ); $posts = new WP_Query($args);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘meat_query and serialized data’ is closed to new replies.