admin管理员组文章数量:1394099
Is it possible to filter multiple categories via a URL?
Basically I have two sections to the site, let's call them fruits and vegetables.
I have a list of categories which applies to both of these, let's call them red and orange.
So my category structure looks like this:
- type
- fruits
- vegetables
- color
- red
- orange
So if I made a post called "Carrot", I'd assign it to "vegetables" and "orange"
What I'm trying to make is custom category pages for fruits and vegetables. The user will see the color categories listed in the sidebar, but if they are on the vegetables category page and click "orange" from the sidebar, they should only see posts that are in vegetables AND orange.
I was really hoping there'd be a way to do this with the URL. I tried:
example/?cat=id-3+id-21
but this shows posts that are in vegetables OR oranges, which is no good.
Is there a way to do this via the URL? Or is this going to require a custom query?
本文标签: taxonomyFiltering multiple categories via the URL
版权声明:本文标题:taxonomy - Filtering multiple categories via the URL 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744671071a2618826.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论