페이지 및 게시물에 meta-box을 어떻게 추가 할 수 있습니까?Wordpress meta-box - 메타 박스를 페이지에 추가하는 방법?
나는이 code이 themes/package/demo.php
에 추가, 나는 표준 필드 내 게시물에 고급 필드를 볼 수있다, 그러나 나는 단지 페이지에서 표준 필드 참조 .
고급 필드을 페이지에 넣을 수도 있습니까?
여기에 answer이 있지만 아래에이 스크립트를 어디에 배치해야합니까?
function meta_box_video()
{ // --- Parameters: ---
add_meta_box('video-meta-box-id', // ID attribute of metabox
'Video Embed', // Title of metabox visible to user
'meta_box_callback', // Function that prints box in wp-admin
'page', // Show box for posts, pages, custom, etc.
'normal', // Where on the page to show the box
'high'); // Priority of box in display order
}
여기 http://codex.wordpress.org/Function_Reference/add_meta_box#Examples –