I'm trying to set dynamic titles on my pages with a switch statement, but can't get it to work.
Tried ifelse using code gleaned from Google but it didn't work.
I'm trying to get it so that all my pages' titles are able to be dynamically used from a value across the site stored in my main file - content.php
This is my code:
<TITLE>My page title</TITLE>
<echo $mypagecontent ?>
Fairly basic, but the site is being developed on localhost anyway.
I would appreciate any help with this, as it's a new one for me!