# Wp-discourse-shortcodes 插件

**URL:** <https://meta.discourse.org/t/wp-discourse-shortcodes-plugin/48910>\
**Category:** Extras\
**Created:** [2016年八月20日 01:41 UTC](https://meta.discourse.org/t/wp-discourse-shortcodes-plugin/48910 "2016-08-20T01:41:38Z")\
**Posts on this page:** 1\
**Showing post:** 114

<div class="post-metadata">

**Author:** ![kiefferr](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@kiefferr](https://meta.discourse.org/u/kiefferr)\
**Post date:** [2023年八月22日 14:53 UTC](https://meta.discourse.org/t/wp-discourse-shortcodes-plugin/48910/114 "2023-08-22T14:53:55Z")

</div>

此插件最大的问题仍然是无法按类别包含/排除。在基于会员制的私有论坛中，您要么看到所有类别，要么什么也看不到，这意味着无法将员工主题排除在普通会员之外。

> [@RGJ](#):
>
> 我仍然看到一个主要问题，即带有不同类别的 `[discourse_topics]` 短代码无法正常工作。这将需要大量工作来修复。我将在休假后第一时间处理这个问题。

然而，注释掉 ajax 请求并完全依赖 webhook 似乎是一个简单的解决方法。我们已经设置了触发器，在 webhook 中排除员工类别。

 ![example](https://global.discourse-cdn.com/meta/original/4X/6/9/d/69d557f8e11d63a7b2ae600d3371b75307cb4cd3.png)

这可以暂时阻止新的员工讨论，直到 ajax 调用最终完成。

那么，也许可以注释掉 ajax 调用？..

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/4/9/f49c4106f233c4b37f0deaa59a3d30b9307cd8ae.png)

我是否忽略了什么会让这种方法不可取？

---

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