列出当前帖子 Wordpress 中小部件中的分类标签

发布于 2024-10-07 08:41:20 字数 153 浏览 8 评论 0原文

我非常想知道是否存在一个小部件,可以让我在小部件中显示当前页面的相关分类术语(最好是分层的)。

例如,如果当前帖子在“演员”的分类中具有分类术语“汤姆·汉克斯”,则小部件将列出“演员”,然后列出“汤姆·汉克斯”。尽管“演员”分类中还有许多其他演员,但仅列出了当前页面中的演员。

I would very much like to know if there is a widget that exists that would let me show the current page's associated taxonomy terms (preferably hierarchically) in a widget.

For example, if the current post has a Taxonomy term "Tom Hanks" in the Taxonomy of "Actor", the widget would list "Actor" then "Tom Hanks". Even though there are many other actors in the taxonomy of "Actors", only the ones from the current page, are listed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还在原地等你 2024-10-14 08:41:20

如果您只是在寻找一个小部件,则应该在 http://wordpress.stackexchange.com 上询问

如果您正在编写自己的小部件并且如果需要帮助,请向我们展示代码并提出具体问题。 SO 用于编程问答。

If you are simply looking for a widget, you should ask on http://wordpress.stackexchange.com

If you are writing your own widget and want help, show us the code and ask a specific question. SO is for programming Q&A.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文