# Wp-discourse-shortcodes plugin

**URL:** https://meta.discourse.org/t/wp-discourse-shortcodes-plugin/48910
**Category:** Extras
**Created:** [August 20, 2016, 1:41am UTC](https://meta.discourse.org/t/wp-discourse-shortcodes-plugin/48910 "2016-08-20T01:41:38Z")
**Posts on this page:** 1
**Showing post:** 116

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 23, 2024, 9:10am UTC](https://meta.discourse.org/t/wp-discourse-shortcodes-plugin/48910/116 "2024-10-23T09:10:39Z")

</div>

Revisiting

> [@kiefferr](#):
>
> The big issue with this plugin still is the inabillity to include/exclude by category.

> [@Kayla](#):
>
> I would like to show private topics, but only of certain categories (which are collected under a single parent category

> [@KlaasKoopman](#):
>
> Is it possible to get the topics from a certain category or subcategory only?

🎉 I am happy to announce that the [WP Discourse](https://github.com/discourse/wp-discourse) Shortcodes plugin now has support for the [(experimental) topic list filter feature](https://meta.discourse.org/t/experimental-topics-list-filter-feature/263641). 🎊

Next to `source="latest"` or `source="top"` you can now do `source="filter"` and put the filter query in the `q` parameter, like this

`[discourse_topics source="filter" q="category:general,site-feedback"]`

Don’t forget to enable the `experimental_topics_filter` setting first!

I’ve also fixed some bugs:

- completely reworked caching (this also removes the need to have an `id` attribute)
- usernames were not showing on non-English forums
- add category filter to latest-AJAX

The plugin is still not in the Wordpress plugin repository, so you should git clone it from the repo

```plaintext
cd wp-content/plugins
git clone https://github.com/communiteq/wp-discourse-shortcodes

```

or alternatively upload this ZIP file to install it.  
[wp-discourse-shortcodes-0.40.zip](https://meta.discourse.org/uploads/short-url/dwTJzRuFgYSMW2JO3x9MhiNVMz5.zip) (67.6 KB)

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-shortcodes-plugin/48910)._
