Hello,
I want to have a topic list preview in Wordpress, pleae tell me how i can make that.
For example, the latest 10 topics on this forum.
Thanks!
The discussion revolves around creating a topic list preview in Wordpress, similar to the latest topics on a Discourse forum. PatrickH initially asked how to achieve this, and TheBestPessimist suggested using the latest.json endpoint. However, PatrickH was looking for a Wordpress solution.
Icaria36 recommended using the RSS feed of a category, tag, or user, and then embedding it in Wordpress using a plugin. PatrickH tried using the latest.rss feed but encountered an error. Icaria36 confirmed that the feed is valid and suggested the issue might be with the plugin being used.
PatrickH provided a screenshot of the desired output, and Mittineague clarified that the issue was not with the feed itself but rather with displaying it in the desired format. Simon suggested using the wp-discourse-shortcodes plugin, which provides a discourse_topics shortcode to display a list of latest topics.
PatrickH confirmed that he wants to display the latest posts on his homepage, similar to the screenshot provided, and will look into the suggested solution.
Hello,
I want to have a topic list preview in Wordpress, pleae tell me how i can make that.
For example, the latest 10 topics on this forum.
Thanks!
You mean this: https://meta.discourse.org/latest.json ?
uhmm.. i think so?
Is there an example in an wordpress environment ? Or how do i add this to wordpress ?
I think the easiest and most flexible way is to get the RSS of the category, tag, user or whatever you need, and then use one of the many plugins WordPress has to embed RSS feeds, and configure their presentation at will. This is what we are doing in our site and it works very well.
To get the RSS feed of anything in Discourse, just append .rss to the page you are at, and chances are that a RSS feed will appear. For instance:
ok, but when i want the latest feed like: https://meta.discourse.org/latest.rss
I get an error:
It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.
Discourse Meta - Latest topics is a RSS feed indeed.
It validates well enough: Feed Validator Results: https://meta.discourse.org/latest.rss
Maybe it is a problem with the specific plugin you are using?
I just made a test. It works with Feedzy RSS Feed plugin without any complaints: Redirecting...
Sorry, but I’m confused about what the issue is.
Depending on what the question is, the answers will be different.
If you are using the WP Discourse plugin, the wp-discourse-shortcodes plugin might do what you are looking for. It extends the WP Discourse plugin to add a discourse_topics shortcode. It can be used without any attributes to give you a list of the 6 latest topics on your forum. Attributes can be added to the shortcode to control how many topics are displayed, and whether or not you would like to display an excerpt along with the topics. The attributes are documented in the plugin’s README.
With the excerpt_length set to 55, it will display something like this:
To install the plugin, you’ll need to download it as a zip file from it’s GitHub page: https://github.com/scossar/wp-discourse-shortcodes
ok thanks. I will look at this.
There is no issue, i want to display the latest posts on my homepage just like in the screenshot.