• I have a function that is hooked to the init action and I call wp_title(”,false,”) to it but it always returns nothing, no matter what I do.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Maybe you need to call it after ‘init’. Some global variables are not available in ‘init’ event.

    Thread Starter Sam Rose

    (@samwho)

    I’ve tried it on wp_loaded and shutdown and it still doesn’t work :/

    It’s used in the header of my theme as part of the <title> tag and it works fine there. I don’t get it…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_title() not working’ is closed to new replies.