我正在使用Divi Wordpress主题和页面构建器,希望能够从博客供稿模块的自定义分类中进行选择。
最终,我正在尝试实现一种功能,该功能允许使用自定义分类法(用户不可见)选择博客供稿中的内容,同时直观地显示类别。
我在php中为博客模块找到了以下代码,并认为也许可以使用自定义分类法重复相同的代码,但事实并非如此,所以我认为我还需要做更多的事情。
'include_categories' => array(
'label' => esc_html__( 'Included Categories', 'et_builder' ),
'type' => 'categories',
'meta_categories' => array(
'all' => esc_html__( 'All Categories', 'et_builder' ),
'current' => esc_html__( 'Current Category', 'et_builder' ),
),