根据分类值循环自定义帖子类型
我有一个自定义帖子类型常见问题解答和自定义分类类别。
我想循环遍历分类类别,获取其值,然后循环遍历自定义帖子类型常见问题解答并获取具有相同分类值的所有帖子。
任何人都可以阐明这一点吗?
在网上找不到任何像样的样本试图做我想做的事,只有相反的。
干杯, 戴夫
I have a custom post type FAQ and custom taxonomy Category.
I want to loop through the taxonomy Category, take its values, and then loop through custom post type FAQ and grab all the posts that have the same taxonomy values.
Can anyone shed some light on this ?
Can't find any decent samples online that are trying to do what I want, only the opposite.
Cheers,
Dave
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您也可以通过这种方式
从 http:// /techsloution4u.com/code-snippet/how-to-create-custom-taxonomy-loop.html
You can do it on this way also
Get from http://techsloution4u.com/code-snippet/how-to-create-custom-taxonomy-loop.html
想通了:)只想分享答案:)
其中 $taxonomy_value 代表您正在搜索的值。问候,戴夫
Figured it out :) Would just like to share the answer :)
Where $taxonomy_value represents the value you are searching for. Regards, Dave