我认为您的一个查询不符合条件。您已删除哪个条件以运行查询?“所有者”的最后一个条件?如果是,请尝试以下操作meta_query
如果条件有问题,请更改查询的关系AND 到OR 和检查(Refer). 还要回显查询并在PHPMyAdmin中运行,以确保查询没有错误。
$meta_query = array(
array(
\'key\' => \'payment_status\',
\'value\' => \'yes\',
),
array(
\'key\' => \'expired\',
\'value\' => \'no\',
),
array(
\'key\' => \'listing_type\',
\'meta_value_num\' => array(1,2,3),
),
array(
\'key\' => \'available_for\',
\'value\' => \'sale\',
),
array(
\'key\' => \'country\',
\'value\' => \'Saudi Arabia\',
),
array(
\'key\' => \'city\',
\'value\' => \'Riyadh\',
),
array(
\'key\' => \'property_type\',
\'value\' => \'land\',
),
array(
\'relation\' => \'OR\',
array(
\'key\' => \'by\',
\'value\' => \'owner\',
),
),
);