| 开发者 | stephenlgray |
|---|---|
| 更新时间 | 2016年1月25日 19:59 |
| PHP版本: | 3.0 及以上 |
| WordPress版本: | 3.4.1 |
read-more-inline folder to the /wp-content/plugins/ directory<!--more--> in HTML view).<?php global $more; $more = FALSE; ?> after the_post() but before the_content() in The Loop. See http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages for more details.It's only for pages so shouldn't be used if you rely on 'read more' links to link to the full post when you're outputting excerpts, say on a homepage list of recent posts.
You'll need to add this line to your page template as well: <?php global $more; $more = FALSE; ?>
See http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages for where and why.
Yes, if you modify the_content function in your templates e.g. <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
the_content() replaces it with.