最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

templates - Read more button not working

programmeradmin1浏览0评论

I want the "read more" button to appear to truncate the blog posts. I tried using the button insert shortcode < !--more-->", but it's not showing up.

I've tried everything I know how...

Can anyone help me?

I want the "read more" button to appear to truncate the blog posts. I tried using the button insert shortcode < !--more-->", but it's not showing up.

I've tried everything I know how...

Can anyone help me?

Share Improve this question edited Dec 28, 2013 at 20:27 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Dec 24, 2013 at 16:07 JCKnoellJCKnoell 211 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 3

From the Codex:

Excerpts (teasers) can be shown on WordPress through two methods:

  • The first, keeping the the_content() template tag and inserting a quicktag called more at your desired "cut-off" point when editing the post.
  • The second, by replacing the the_content() template tag with the_excerpt().

If one of those conditions is met, and you are not getting the <!--more--> functionality then it is likely that your theme is doing something to bypass the the filters that make it work. Perhaps the theme is printing content via something like echo $post->post_content or the theme or a plugin has removed filters or added filters that break the <!--more--> tag. It is hard to say which without seeing the relevant code.

发布评论

评论列表(0)

  1. 暂无评论