Enabling RSS feed on Discourse setup

AI 生成的摘要

Enabling RSS Feed on Discourse Setup

10ColorsTenkara asked for help in enabling the RSS feed on their Discourse setup. pfaffman replied that adding .rss or .json to most URLs would work, providing an example of https://meta.discourse.org/c/support.rss.

For enabling RSS feeds per category, users can add .rss to the category URL. codinghorror explained that viewing the page source reveals the RSS feed links, which can be used to fetch latest posts, topics, or category-specific topics.

To display the latest Discourse posts on a WordPress page, users can use an RSS feed plugin, such as those listed by Falco.

Finally, isubbu inquired about increasing the number of items or loading all items in the RSS feed.

I hope this is the right category for this and apologies for the noob question and/or wrong placement. I’ve searched here on meta and on github and cannot for the life of me figure how to enable RSS for my install. This is my first install of discourse and have the most up to date version running. Any help is much appreciated. Thanks.

It’s not clear just how you’d know this.

Just add . rss (or .json) to pretty much any url.

Oops! thanks for the edit, @falco!

Thanks. Am I correct in understanding that I should do this in my app.yml file and if so, where? Secondly, can I do it per category and get all new topics in that category? Thirdly, is there a way to do it to get topic replies or only when new topics are created within a category?

For example:

https://meta.discourse.org/c/support.rss

Ahhh, I see. Just putting it in the browser. Thanks. Oddly simple without realizing it.

It’s totally obvious! But only after you know. :wink:

If you view source on the page:

<link rel="alternate" type="application/rss+xml" title="Latest posts" href="https://meta.discourse.org/posts.rss" />
<link rel="alternate" type="application/rss+xml" title="Latest topics" href="https://meta.discourse.org/latest.rss" />
<link rel="alternate" type="application/rss+xml" title="RSS feed of topics in the &#39;releases&#39; category" href="https://meta.discourse.org/c/releases.rss" />

Also note that apps which use RSS will take the URL and scan for those standard RSS HTML <link> tags … so saying “you need to know” isn’t true. Just point the RSS tool at the page and it’ll look for you.

This is great guys. How would I go about it if I wanted to display my “latest” Discourse posts on a WordPress page?

Just putting the rss URL in a blog post or page won’t work, I presume …

Thanks!

You will need a plugin like those:

Will have a look. Thanks!

有没有办法增加 RSS 中的项目数量,或者加载所有项目?