Suppose I store all my post meta data in an array like
$meta = array(
'img' => '',
'caption' => ''
);
update_post_meta($post->ID, 'theme_banner', $meta);
Can I query posts where the img is filled?
Suppose I store all my post meta data in an array like
$meta = array(
'img' => '',
'caption' => ''
);
update_post_meta($post->ID, 'theme_banner', $meta);
Can I query posts where the img is filled?
You must be logged in to post a comment.
Short answer: NO!
I’ve asked a similar question before mysql order by serialized data?
and the answer i got is: