Craft CMS Asked by Mahantesh Teli on August 1, 2021
$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
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP