如何在主页上显示最新帖子(仅一篇)的全文、评论等?
在 WordPress 上,如何在主页上显示最新帖子(仅一篇)的全文、评论等?
我基本上希望主页成为最新的帖子,就像我单击它并获取帖子网址一样(例如:domain/wordpress/?p=18
)。
On Wordpress, how can I show the latest post (one only) on the homepage with full text, comments and all?
I basically would like the homepage to be the latest post as if I clicked it and got the post url (like: domain/wordpress/?p=18
for example).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
谢谢大家的回复。我做了你建议的 TheLibzter :-)
Windyjonas,你的回答部分正确。最终的伎俩是:
Thanks guys for the reply. I did what you've suggested TheLibzter :-)
windyjonas, your answer was partial right. What eventually did the trick is:
从 home.php 重定向:
Redirect from home.php:
这就是我要做的:
在侧边栏中的设置中,单击
阅读。
首页显示(“您的最新
posts") 被选中。
将“博客页面最多显示”更改为 1。
“对于每个
选择“提要中的文章,显示”。
这应该可以解决问题,但如果它不适合您,请告诉我。:)
Here's what I would do:
Settings in the sidebar, click
Reading.
Front Page Displays ("Your latest
posts") is selected.
to "Blog pages show at most" to 1.
radio button next to "For each
article in a feed, show" is selected.
That should do the trick, but let me know if it doesn't work for you. :)