列出当前帖子 Wordpress 中小部件中的分类标签
我非常想知道是否存在一个小部件,可以让我在小部件中显示当前页面的相关分类术语(最好是分层的)。
例如,如果当前帖子在“演员”的分类中具有分类术语“汤姆·汉克斯”,则小部件将列出“演员”,然后列出“汤姆·汉克斯”。尽管“演员”分类中还有许多其他演员,但仅列出了当前页面中的演员。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只是在寻找一个小部件,则应该在 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.