动态添加新闻到 feed
我正在运行一个 Wordpress 网站,并且首页上有一个运行新闻的
是否可以让它动态生成新闻?我这么说是什么意思?
是否有可能做到这一点,以便每当发布“新闻”类别的新帖子时,它都会自动与五个内容一起输入到首页的
这是否太遥不可及了?有什么想法吗?
谢谢!
阿米特
I'm running a Wordpress website and I have a <marquee>
on the front page that runs the news.
Is it possible to have it dynamically generate the news? What do I mean by that?
Would it be possible to make it so that whenever a new post is made with a category of "News", it will automatically be fed into the <marquee>
on the front page, along with the five older news posts, such that the six most recent news posts are being <marqueed>
in the front page, and so that the user doesn't have to go into the html code to manually add in entries.
Is this too far out of reach? Any thoughts?
Thanks!
Amit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其实,如果我简单地想一下,这似乎是一件很容易完成的任务,不是吗?
只需在首页上循环显示带有新闻类别的帖子,然后用
Actually, if I think about it in simple terms, it seems like this can be an easy task to accomplish, no?
Just have a loop showing posts with the category of news on the front page and wrap that up with a
<marquee>
tag. I think that should work.