Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress阅读更多链接内容_Wordpress - Fatal编程技术网

Wordpress阅读更多链接内容

Wordpress阅读更多链接内容,wordpress,Wordpress,我想在我主页的每篇文章中都有一个阅读更多链接。我正在使用functions.php文件中的一个函数来剪切这篇大文章 function plugin_myContentFilter($content) { // Take the existing content and return a subset of it return substr($content, 0, 100); } add_filter("the_content", "plugin_myContentFilter"

我想在我主页的每篇文章中都有一个
阅读更多
链接。我正在使用
functions.php
文件中的一个函数来剪切这篇大文章

function plugin_myContentFilter($content)
{
    // Take the existing content and return a subset of it
    return substr($content, 0, 100);
}
add_filter("the_content", "plugin_myContentFilter");
下面是我打电话来显示帖子的代码

the_content(__('<span class="btn-readmore">Continue Reading</span>', 'myBlog'));
内容('Continue Reading','myBlog');
我在主页上的每篇文章都有100个字符,但是没有更多的阅读链接。我知道可以在“创建新帖子”页面添加“阅读更多”链接,但每次我都不想从那里添加链接