I am working on an project with many different page templates instead of custom post types. For SEO purposes I need to rewrite the title- and meta-description, which normally works on the page itself. Because of the impact of changing these titles and descriptions (1600 pages), I'd like to change the title- and meta-description templates for all pages with a custom page-template in the Yoast plugin.
Is there a way to rewrite the titles & meta's based on page template (page-[template-name].php) in the Yoast plugin?
I can use a filter to change title- and meta-description based on the php template itself, but it is not the best solution, because I'd still like to use the variables like %%sep%%, %%sitename%%, etc.