Using php to overwrite or replace title tag, while using yoast [closed]
IT Nursery
April 10, 2022
0
I use yoast for my seo, indexing, title, sitemap etc.
But I have one issue, for my product pages I want to use costum taxonomy data and yoast doesnt support that. Now I got the code to echo the exact title I want in the product pages but how do I let it overwrite the title set by yoast, or how do I replace the title set by yoast for this specific post type?
1
The WPSEO plugin by Yoast has a filter for the title: ‘wpseo_title’. You’ll need to add something like this: