我有一个项目类型:别墅,住房。。。这部分代码不显示任何内容:
$aProjectArgs = array(
\'post_type\' => \'uni_project\',
\'posts_per_page\' => -1,
\'orderby\' => \'menu_order\',
\'order\' => \'asc\',
\'tax_query\' => array(
array(
\'taxonomy\' => \'post_tag\',
\'field\' => \'id\',
\'terms\' => 45
)
)
i tried also :
$aProjectArgs = array(
\'post_type\' => \'uni_project\',
\'posts_per_page\' => -1,
\'orderby\' => \'menu_order\',
\'order\' => \'asc\',
\'tax_query\' => array(
array(
\'taxonomy\' => \'post_tag\',
\'field\' => \'name\',
\'terms\' => \'Villa\'
)
)
但是什么都不显示,有人能帮我吗?