# Topic list preview in Wordpress

**URL:** https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947
**Category:** WordPress
**Created:** [June 15, 2018, 5:57am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947 "2018-06-15T05:57:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![PatrickH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickh/32/116296_2.png) [@PatrickH](https://meta.discourse.org/u/PatrickH)
#### Post date: [June 15, 2018, 5:57am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/1 "2018-06-15T05:57:52Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![TheBestPessimist](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thebestpessimist/32/247704_2.png) [@TheBestPessimist](https://meta.discourse.org/u/TheBestPessimist)
#### Post date: [June 15, 2018, 6:32am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/2 "2018-06-15T06:32:55Z")

</div>

You mean this: [https://meta.discourse.org/latest.json](https://meta.discourse.org/latest.json) ?

---

<div class="post-metadata">

### Author: ![PatrickH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickh/32/116296_2.png) [@PatrickH](https://meta.discourse.org/u/PatrickH)
#### Post date: [June 15, 2018, 6:52am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/3 "2018-06-15T06:52:31Z")

</div>

uhmm.. i think so?  
Is there an example in an wordpress environment ? Or how do i add this to wordpress ?

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [June 15, 2018, 9:00am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/4 "2018-06-15T09:00:17Z")

</div>

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:

> **[WordPress](https://meta.discourse.org/c/support/wordpress/21)**
>
> Support for the official Discourse WordPress plugin at GitHub - discourse/wp-discourse: WordPress plugin that lets you use Discourse as the community engine for a WordPress blog

---

<div class="post-metadata">

### Author: ![PatrickH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickh/32/116296_2.png) [@PatrickH](https://meta.discourse.org/u/PatrickH)
#### Post date: [June 15, 2018, 7:11pm UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/5 "2018-06-15T19:11:32Z")

</div>

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.`

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [June 15, 2018, 7:28pm UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/6 "2018-06-15T19:28:18Z")

</div>

[Discourse Meta - Latest topics](https://meta.discourse.org/latest.rss) is a RSS feed indeed.

It validates well enough: [Feed Validator Results: https://meta.discourse.org/latest.rss](https://validator.w3.org/feed/check.cgi?url=https%3A%2F%2Fmeta.discourse.org%2Flatest.rss)

Maybe it is a problem with the specific plugin you are using?

---

<div class="post-metadata">

### Author: ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)
#### Post date: [June 15, 2018, 7:34pm UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/7 "2018-06-15T19:34:39Z")

</div>

I just made a test. It works with Feedzy RSS Feed plugin without any complaints: [Redirecting...](https://confederac.io/en/discourses-latest-rss-test-2)

---

<div class="post-metadata">

### Author: ![PatrickH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickh/32/116296_2.png) [@PatrickH](https://meta.discourse.org/u/PatrickH)
#### Post date: [June 15, 2018, 8:26pm UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/8 "2018-06-15T20:26:49Z")

</div>

thanks, but not exaclty (sorry 😳)  
Is it possible to make it like this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/3/5337384edfd5325151af9eddcbcf995452079403.png)

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [June 15, 2018, 9:42pm UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/9 "2018-06-15T21:42:18Z")

</div>

Sorry, but I’m confused about what the issue is.

- the latest.rss errors (hmmm. iPad Safari gives a “can not determine filesize”)
- latest.rss does not have the content you are wanting to have as a feed
- latest.rss has what you want, but you can not use it to display like you want it to

Depending on what the question is, the answers will be different.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [June 16, 2018, 2:04am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/10 "2018-06-16T02:04:52Z")

</div>

If you are using the [WP Discourse](https://github.com/discourse/wp-discourse) plugin, the wp-discourse-shortcodes plugin might do what you are looking for. It extends the [WP Discourse](https://github.com/discourse/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:

 ![39%20PM](https://global.discourse-cdn.com/meta/original/3X/7/6/76353f85e78daddf4212d85fd1105b0fecdc935d.png)

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](https://github.com/scossar/wp-discourse-shortcodes)

---

<div class="post-metadata">

### Author: ![PatrickH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickh/32/116296_2.png) [@PatrickH](https://meta.discourse.org/u/PatrickH)
#### Post date: [June 16, 2018, 8:54am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/11 "2018-06-16T08:54:35Z")

</div>

ok thanks. I will look at this.

---

<div class="post-metadata">

### Author: ![PatrickH](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickh/32/116296_2.png) [@PatrickH](https://meta.discourse.org/u/PatrickH)
#### Post date: [June 16, 2018, 8:56am UTC](https://meta.discourse.org/t/topic-list-preview-in-wordpress/89947/12 "2018-06-16T08:56:18Z")

</div>

> [@Mittineague](#):
>
> Sorry, but I’m confused about what the issue is.
> 
> - the latest.rss errors (hmmm. iPad Safari gives a “can not determine filesize”)
> - latest.rss does not have the content you are wanting to have as a feed
> - latest.rss has what you want, but you can not use it to display like you want it to
> 
> Depending on what the question is, the answers will be different.

There is no issue, i want to display the latest posts on my homepage just like in the screenshot.
