作者shaw6096 (shaw)
看板Blog
标题Re: [ WP ] 带tag的网址无法显示全文
时间Thu Jan 31 09:39:38 2013
在FB的wordpress正体中文粉丝团已得到解答
在archive.php 这一页找到合适的地方插入下列的程式码即可
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title();
?>">继续阅读</a>
另外会出现[...]是由the_excerpt()作用,预设是只出现55个字,
如要修改出现字数的多寡,请修改使用布景主题的functions.php这一个网页
加入下列程式码即可
function custom_excerpt_length( $length ) {
return
150;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
绿字的字数就是你要出现的长度,自行决定要输入多少。
Reference :
http://ppt.cc/xXjg
※ 引述《shaw6096 (shaw)》之铭言:
: 想问一下,网址带tag进来的文章,通常只能看到一行半的文字,
: 後面就会变成[...],但又没有像-more-这样可以点,
: 只能再次点标题才能列出全文,
: 有什麽办法解吗? 谢谢先
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 219.85.62.222