Dynamically changing the page title?
-
How do I dynamically set the page title? I would like to specify the page title before wp_head is passed, so that the <title> tag will output whatever I want. I’ve searched for a while but can’t find a simple solution.
I don’t want to display or return wp_title – I want to dynamically SET it before it’s output to the page from within a custom content type, ie.
set_wpl_title(‘My Custom Title’);
And when wp_head is called, all the other stuff is included plus
<title>My Custom Title</title>
Any simple way of achieving this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dynamically changing the page title?’ is closed to new replies.