I have a page in WordPress which displays different content depending on the value of a query string see below
My problem is that this the
tags get set to the value for
my-page and not to the value associated to the content for
I’ve also explored the idea of modifying the WordPress function
wp_title() but I’m pretty sure that doing this will eventually be overwrote when I upgrade WordPress.
What I need really is a way to somehow dynamically set the page title just after it is retrieved but before the function
wp_title() is called, any ideas would be great.
Read more here: WordPress – Modify Title value before Header is rendered