用div包装的Wordpress添加元数据框?
我目前正在完成一个wordpress插件,它是我一直在写的 我的问题是:我正在为管理面板选项添加一些add_meta_box东西(),是否有任何方法可以将add_meta_box()的输出包装到一个div中 例如:用div包装的Wordpress添加元数据框?,wordpress,Wordpress,我目前正在完成一个wordpress插件,它是我一直在写的 我的问题是:我正在为管理面板选项添加一些add_meta_box东西(),是否有任何方法可以将add_meta_box()的输出包装到一个div中 例如: <div id="meta_wrapper_here"> <?php example_meta_boxes() ?> content here.. </div> <?php function create_transcript() {
<div id="meta_wrapper_here">
<?php example_meta_boxes() ?> content here..
</div>
<?php
function create_transcript() {
register_post_type( 'example',
array(
'labels' => array(
'name' => 'Plugin-Example',
'singular_name' => 'Plugin-Example',
'add_new' => 'Add New',
'add_new_item' => 'Add New Plugin-Example Set',
'edit' => 'Edit',
'edit_item' => 'Edit Plugin-Example Set',
'new_item' => 'New Plugin-Example Set',
'view' => '',
'view_item' => '',
'search_items' => 'Search Plugin-Example Sets',
'not_found' => 'No Plugin-Example Sets found',
'not_found_in_trash' => 'No Plugin-Example Sets found in Trash',
'parent' => 'Parent Example'
),
'public' => true,
'menu_position' => null,
'supports' => array( 'title' ),
'taxonomies' => array( '' ),
'capability_type' => 'post',
'register_meta_box_cb' => 'example_meta_boxes', // Callback function for custom metaboxes
'has_archive' => true
)
);
}
add_action( 'init', 'create_transcript' );
function example_meta_boxes() {
add_meta_box( 'example_form', 'Set Details', 'example_form', 'example', 'normal', 'high' );
}
?>
内容在这里。。
<代码> >我希望你没有在插件代码中间挂着的<<代码>答案很可能是否定的,WP在其标记中输出元框,而您仅限于内部内容。你为什么需要这个?谢谢你的回复。。我编写了几个特性并将它们包装到一个选项卡式界面中,但我无法在我的选项卡式界面中获取metabox内容。CPT编辑屏幕中的选项卡式界面?那是一个超级元盒吗?我无法想象你想做什么。如果可能,请向问题本身添加更多详细信息:。