Hi @serviceweb
Please keep in mind that you need to use the result of this query instead of showing the result from $wpdb
class. Could you please try the following code?
$args = array(
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'url_field_past',
'compare' => '=',
'value' => ''
),
array(
'key' => 'url_field_past',
'compare' => 'NOT EXISTS',
)
)
);
$the_posts = get_posts($args);
echo <pre>;
print_r($the_posts);
echo ;
Thanks 🙂