admin管理员组文章数量:1291176
I'm trying to add tag in CUSTOM POST TYPE (news). Problem is that I dont know how. I'm not a developer of WP Theme.
I need to add it here: HERE
As you can see its a custom post type with posts, but I need to add the only to this subcategory (aktuality-z-legislativy) somewhere under heading. How can I do that ?
I'm trying to add tag in CUSTOM POST TYPE (news). Problem is that I dont know how. I'm not a developer of WP Theme.
I need to add it here: HERE
As you can see its a custom post type with posts, but I need to add the only to this subcategory (aktuality-z-legislativy) somewhere under heading. How can I do that ?
Share Improve this question asked Jun 7, 2021 at 10:59 SamM FooltSamM Foolt 11 bronze badge 6 | Show 1 more comment1 Answer
Reset to default 0Solution: I duplicated taxonomy.php template in theme folder and named it taxonomy-news-business.php then I edited the code inside this template
So the result is that now all posts in CUSTOM POST TYPE with slug news with category businesss are displayed according this template because taxonomy template hierarchy in WordPress is taxonomy-{taxonomy}-{term}.php
本文标签: Custom post type templateadd banner under heading
版权声明:本文标题:Custom post type template - add banner under heading 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741513228a2382729.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
taxonomy-news_category-1849.php
– Tom J Nowell ♦ Commented Jun 7, 2021 at 12:39