지정한 페이지의 내용을 가져 오는 단축 코드를 사용할 수 있습니다. functions.php
에서 :
add_action('init', 'so20477735_init', 11);
function so20477735_init()
{
add_shortcode('duplicate_page', 'so20477735_shortcode_callback');
}
function so20477735_shortcode_callback($atts, $content = null)
{
extract(shortcode_atts(array(
'page_id' => 0
), $atts));
$page_data = get_page($page_id);
$return = '';
if(! is_null($page_data))
$return .= $page_data->post_content;
return $return;
}
사용 예제 :
[duplicate_page page_id="12"]
편집
난 당신이 wp.com을 사용하고있는 사실을 놓쳤다. 당신은 디스플레이 게시물의 단축 코드와 비슷한 일을 할 수 있어야한다 :
http://en.support.wordpress.com/display-posts-shortcode/
덕분에 힌트를 많이. 불행히도 나는 다른 페이지의 전체 내용을 포함하여 [display-posts ...]로 작업을 완료하지 못했습니다. –