解决wordpress的最近文章的标题过长问题的方法
如果您发现本文排版有问题,可以先点击下面的链接切换至老版进行查看!!!
解决wordpress的最近文章的标题过长问题的方法
《!?php if ( get_the_title() ) the_title(); else the_ID() ?》为
《?php if ( get_the_title() ) strimwidth(echo get_the_title(),0,36,'...'); else the_ID() ?》因为在wordpress中用the_title()代替了echo get_the_title(),所以直接用strimwidth(the_title(),0,36,'...')不行,替换上面的《和》为英文状态的。
- 分类:
- WordPress
更新时间: