Wordpress#u内容(';更多';)无法显示<--更多-->;
我的Wordpress#u内容(';更多';)无法显示<--更多-->;,wordpress,Wordpress,我的wordpress 3.5博客有一个恼人的问题 _content()函数无法在第一页/索引页上显示文章的简短版本,它会完整显示文章的内容 我当前的loop.php文件中的\u content()代码行是: <?php the_content('Read more...'); ?> 我曾尝试搜索wordpress论坛stackoverflow和codex,我尝试了以下方法: <?php global $more; // Declare global $more
wordpress 3.5
博客有一个恼人的问题
_content()
函数无法在第一页/索引页上显示文章的简短版本,它会完整显示文章的内容
我当前的loop.php
文件中的\u content()代码行是:
<?php the_content('Read more...'); ?>
我曾尝试搜索wordpress论坛stackoverflow和codex,我尝试了以下方法:
<?php
global $more; // Declare global $more (before the loop).
$more = 0; // Set (inside the loop) to display content above the more tag.
the_content("More...");
?>
但它不起作用
你知道这个问题是什么吗?你是否在你的页面内容中添加了一个
标签来显示更多链接?摘自以下日期的法典:
有时只使用内容()函数更有意义content()
将根据是否使用了
标记来决定显示什么。
标记将文章/页面分成两部分:列表中只显示标记前的内容。请记住,
在显示单个帖子/页面时(当然)会被忽略