如何解决将我的 jupiter 主题标题构建器小部件添加到我的自定义帖子类型
我为名为“insight-report”的公司 wordpress 网站创建了自定义帖子类型,但由于某种原因,我无法在帖子类型中显示 Jupiter 主题样式选项。从我所看到的,如果有帮助的话,木星构建器似乎位于 /header-builder/class-mkb-main.PHP 中。
'supports' => array( 'title','editor','excerpt','author','thumbnail','comments','revisions','custom-fields','page-attributes' ),
还是我应该以某种方式将它排入队列?
如果有帮助,这是我的帖子类型:
function custom_post_type() {
$labels = array(
'name' => _x( 'Insight Report','Post Type General Name','mk_framework' ),'singular_name' => _x( 'insight-report','Post Type Singular Name','menu_name' => __( 'Insight Report','parent_item_colon' => __( 'Parent Insight Report','all_items' => __( 'All Insight Reports','view_item' => __( 'View Insight Report','add_new_item' => __( 'Add New Insight Report','add_new' => __( 'Add New','edit_item' => __( 'Edit Insight Report','update_item' => __( 'Update Insight Report','search_items' => __( 'Search Insight Report','not_found' => __( 'Not Found','not_found_in_trash' => __( 'Not found in Trash',);
$args = array(
'label' => __( 'insight-report','description' => __( 'NewTrade reports for clients','labels' => $labels,'supports' => array( 'title','taxonomies' => array( 'reports' ),'hierarchical' => false,'public' => true,'show_ui' => true,'show_in_menu' => true,'show_in_nav_menus' => true,'show_in_admin_bar' => true,'menu_position' => 5,'can_export' => true,'has_archive' => true,'exclude_from_search' => false,'publicly_queryable' => true,'capability_type' => 'post','show_in_rest' => true,'taxonomies' => array( 'category','post_tag' ),);
register_post_type( 'insight-report',$args );
}
add_action( 'init','custom_post_type',0 );
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。