• 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • its not at all clear what you are trying to do from what you described

    Thread Starter hardwork64

    (@hardwork64)

    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?

    Thread Starter hardwork64

    (@hardwork64)

    I got an easier way of doing it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calling wp_title with $thisPage’ is closed to new replies.