Home > Backend Development > PHP Tutorial > 文章缩列问题

文章缩列问题

WBOY
Release: 2016-06-23 14:14:21
Original
998 people have browsed it

我用的是wordpress博客,我在后台写一个文章,比如有1W字,发表后,文章就在首页显示1W字,能有什么办法让他只显示一两百字,然后尾末有个【详细】,这样首页就美观些。


回复讨论(解决方案)

那你就截取前一两百字就是了

substr(string,start,length)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template