仅显示特定页面ID的标题和简短摘要 时间:2013-07-19 作者:dinesh $id = 25; $post = get_page($id); $title = apply_filters(\'the_title\', $post->post_title); $content = apply_filters(\'the_content\', $post->post_content); echo $title, $content; 上面的代码显示了标题和全部内容,但我只想显示简短的摘要。我该怎么做? 1 个回复 SO网友:Lilumi 简短摘要功能为the_excerpt 或get_the_excerpthttp://codex.wordpress.org/Function_Reference/the_excerpthttp://codex.wordpress.org/Function_Reference/get_the_excerpt或<?php echo $post->post_exerpt; ?> 结束 文章导航