wordpress首页第一篇显示全文,其他显示摘要
让首页第一篇日志显示全文,剩下的都显示摘要
内容输出部分改成以下代码
if(!$first){ $first = 1; $more = 1; the_content(); $more = 0; } else { the_excerpt(); //或者使用the_content(); }
收集自wordpress.org.cn 作者ddbug
其他人还看了
本文标签: wordpress
给资源评分:
让首页第一篇日志显示全文,剩下的都显示摘要
内容输出部分改成以下代码
if(!$first){ $first = 1; $more = 1; the_content(); $more = 0; } else { the_excerpt(); //或者使用the_content(); }
收集自wordpress.org.cn 作者ddbug