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
Add a comment  | 

1 Answer 1

Reset to default 0

You 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