0

我需要从插件或方法中仅显示主页中帖子内容的一部分,然后单击“阅读更多”以加载完整帖子。

4

2 回答 2

1

When adding new post you can insert "more" tag in editor Visual Or manually (in "HTML" mode) by inserting < !--more-->.

Then put the rest of your content below this tag.

For more info about more tag, go here http://en.support.wordpress.com/splitting-content/more-tag/

于 2012-07-07T17:02:10.520 回答
0

您可以使用帖子摘录来获取帖子的描述。(简短描述)。例子:

<?php
$my_excerpt = get_the_excerpt();
if ( '' != $my_excerpt ) {
    // Some string manipulation performed
}
echo $my_excerpt; // Outputs the
?>

详细阅读并关注我的来源>> http://www.kyowal.com/rsiwal/posts/8196

于 2016-09-07T06:10:23.650 回答