您正在使用get_the_content()
错了,不能用身份证get_option(\'page_for_posts\')
确实返回,并且通常在循环中获取当前帖子的内容,必须在其中使用它。
要获取该页面的实际内容,可以执行以下操作:
$page_for_posts_id = get_option( \'page_for_posts\' );
$page_for_posts_obj = get_post( $page_for_posts_id );
echo apply_filters( \'the_content\', $page_for_posts_obj->post_content );
或:
$page_for_posts_id = get_option(\'page_for_posts\');
echo get_post_field( \'post_content\', $page_for_posts_id );