admin管理员组文章数量:1317906
I have created CPT called "Pharmacy" which have a lot of pharmacies inside (approx 10.000)
Pharmacies offer 2 different services (skin & scalp) and some provide both services but some provide only one.
What I am trying to add is skin & scalp as taxonomies that can be assigned to each pharmacy depending what they offer.
So let's say that pharmacy_one offers both services then the link structure should look like this:
/skin/pharmacy_one
/scalp/pharmacy_one
Finally, these taxonomies (skin & scalp) need to be connected to custom template page-skin.php & page-scalp.php depending on the URL and display different layout.
So "pharmacy_one" needs to have 2 layout and 2 links.
Is it possible to achieve it?
本文标签: Define multiple prefixes for custom post type
版权声明:本文标题:Define multiple prefixes for custom post type 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742032656a2416741.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论