I've been trying to call the title of a page with <?php $thisPage=""; ?> at the top of header.php using wp_title but without success. Does anyone know the way to do it?
Thanks
I've been trying to call the title of a page with <?php $thisPage=""; ?> at the top of header.php using wp_title but without success. Does anyone know the way to do it?
Thanks
its not at all clear what you are trying to do from what you described
Thanks stvwlf.
I'm trying to call the title of a page with a variable.
If I have a static page I would use <?php $thisPage="About"; ?> at the top of a page to tell a php file to execute a certain action on the current page, which in this case is called About. And so on with other static pages. But I can't do that with dynamic pages as in WP. I've been trying to use wp_title but doesn't work. So, I can't get the right way of calling the current page with $thisPage. Any suggestions?
I got an easier way of doing it.
You must log in to post.