0
$queryElement = Entry::find()
    ->section('posts')
    ->country(['abc', ':empty:'])
    ->location(['xyz', ':empty:'])
    ->orderBy('postDate desc')
    ->limit(null);

here country, location are custom fields added to the section this code will return empty array when executed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.