如何获取博客文章的特色图片、内容、最后修改日期和评论数?
我有一个 WordPress 网站,我想在其中创建一个博客页面,该页面将显示以下内容。
- 第一行是博客的特色图片
- 第二行是博客标题 第三
- 行是博客内容(文本)
- 最后更新、评论计数和发布者在第四行。
我该怎么做?
我应该直接查询数据库还是使用一些内置函数?
有什么帮助吗?
I have a wordpress site in which I want to create a blog page which will display the following things.
- The blog's featured image in first line
- The blog title in the second line
- The blog content(text) in the third line
- The last update, comments count and posted by in the 4th line.
How will I do this?
Shoud I directly query the database or use some builtin functions?
Any help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)