admin管理员组文章数量:1122846
I have a custom post type 'question' and taxonomy 'question_tag'using Anspress plugin. When visiting a tag page the title is "Example Tag". Desired result: "Questions on Example Tag". How could I achieve this?
I have a custom post type 'question' and taxonomy 'question_tag'using Anspress plugin. When visiting a tag page the title is "Example Tag". Desired result: "Questions on Example Tag". How could I achieve this?
Share Improve this question asked Jan 23, 2017 at 15:05 JayantaJayanta 34 bronze badges 1- Anyway, I was able to do that with Yoast SEO plugin – Jayanta Commented Feb 4, 2017 at 17:30
1 Answer
Reset to default 0You would need to find the archive.php from your parent theme and copy it to your child theme if you haven't already. Rename it to archive-question.php (based on your CPT type above). Then open the php file and look for where it outputs your title. Add "Questions on" in front of the output.
Without seeing your code, this is the most help we can be.
本文标签: Modify title of custom taxonomy archive page
版权声明:本文标题:Modify title of custom taxonomy archive page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736285511a1927470.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论