【问题标题】:Why do my posts keep getting cut off after a few words in wordpress?为什么我的帖子在 wordpress 中写了几句话就被截断了?
【发布时间】:2016-07-30 10:19:45
【问题描述】:

我创建了一个静态页面,并通过使用“页面中的帖子”插件向页面添加了一个帖子。 但似乎帖子被切断并在帖子末尾添加了一个 [...] 。 我检查了 page.php 文件,上面写着<?php the_content(); ?> 内容应该出现在哪里。 如何在不修剪的情况下显示完整的帖子?

【问题讨论】:

  • 找到了,posts-in-page/posts_loop_template.php 文件已经用“the_excerpt”覆盖了 page.php “the_content”

标签: php wordpress post plugins trim


【解决方案1】:

在

 posts-in-page/posts_loop_template.php

改变

"the_content" to "the_excerpt"

大声笑,我得到了他们的先知技能。

【讨论】:

    猜你喜欢
    • 2017-06-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-12
    相关资源
    最近更新 更多