私の用語が混乱している場合は申し訳ありませんが、これを正確に何と呼んでいるのかわかりません。
Wordpressで投稿またはページタイプを編集する場合、エディターの右側に[公開]、[属性]、[注目の画像]などのセクションがあります。右側に独自のセクションを追加する方法があるかどうか疑問に思います。他のように?カスタム投稿タイプですか、それとももっと複雑なものですか?
私はフックを使用する可能性の範囲内にとどまろうとしています。
それらは「メタボックス」です
http://codex.wordpress.org/Function_Reference/add_meta_box
function my_custom_meta_boxes()
{
add_meta_box(
'custom1', // id
'Custom Metabox', // title
'display_custom_meta_box', // callback for display
'post', // post type
'normal', // position
'high' // priority
);
}
add_action('add_meta_boxes', 'my_custom_meta_boxes');
function display_custom_meta_box()
{
echo 'Your meta box here';
}
メタボックスをすばやく作成するために利用できるプラグインがあります。
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
ここでそれについて読んでください^グーグルするのはそれほど難しくありませんでした!:)