Hi there,
I'm trying to retrieve a set of 'custom_type' posts with a 'custom_field' condition. I'm not using a custom table in this case. This is the code I'm using.
$args = array(
'post_type' => 'custom_type',
'posts_per_page' => -1,
'meta_query' => array(
array(
'key' => 'custom_field',
'value' => $value,
),
),
);
$query = new WP_Query( $args );
But the query is returning an empty set. Could you please help me to fix this?
Thanks!