仅显示主页中文章的开头
我希望我的 WordPress 主题仅在主页中显示几行文章,然后在末尾显示一些点(省略号),并带有“阅读更多”链接。这怎么能做到呢?我现在使用 Elegant Grunge 1.0.3 主题。
I want my wordpress theme to only show a few lines of the articles in the home page, and then some dots (ellipses) at the end with a "read more" link. How can this be done? I'm using the Elegant Grunge 1.0.3 theme right now.
您需要使用 the_excerpt() 函数来完成您想要的操作。我不知道你的主题,但可能有一个选项可以做到这一点。
You need to use the_excerpt() function to do what you want. I don't know your theme but may be it have an option to do it.