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个字符,但是没有更多的阅读链接。我知道可以在“创建新帖子”页面添加“阅读更多”链接,但每次我都不想从那里添加链接