我有一个自定义的帖子类型imagery
. 我有分类法publications
. 我需要现在和未来imagery
帖子类型具有分类法publications
. 下面是函数中代码的简化版本。php:
$args = array(
\'taxonomy\' => array(\'publications\')
);
register_post_type( \'imagery\', $args );
。。但它不起作用。我做错了什么?我有一个自定义的帖子类型imagery
. 我有分类法publications
. 我需要现在和未来imagery
帖子类型具有分类法publications
. 下面是函数中代码的简化版本。php:
$args = array(
\'taxonomy\' => array(\'publications\')
);
register_post_type( \'imagery\', $args );
。。但它不起作用。我做错了什么?您只是在要使用的密钥上犯了一个错误:它是taxonomies
不taxonomy
.
$args = array(
\'taxonomies\' => array(\'publications\')
);
register_post_type( \'imagery\', $args );
我有一个网站,上面有各州的分类法(如维多利亚州、肯斯兰州等)。这种分类法被称为listing\\u State。我还有一个名为membership\\u type的分类法,它可以是免费的,也可以是付费的。这两种税收经济适用于上市公司的CPT如果我点击一个州的分类法,它会按照预期结果按发布日期排序,我会如何在免费会员之前列出付费会员。我正在使用Genesis和Lifestyle主题谢斯里查德