安装好wordpress后
发现首页和分类页面文章的内容全部显示了,
和我想要的不一样,我想要的是只显示文章的摘要,然后点击查看更多查看文章的详情
如何修改?
点击外观|主题文件编辑器|index-blog.php
修改内容
<div class="entry-content">
<p><?php the_content(__('Read More','busiprof')); ?></p>
</div>
将the_content
改为the_excerpt
修改content.php
<div class="entry-content">
<?php the_content( esc_html__('Read More','busiprof') ); ?>
</div>
将the_content
改为the_excerpt
如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术
转载请注明:wordpress中设置首页和分类文章不全部显示 出自老鄢博客 | 欢迎分享