Support » Fixing WordPress » Page Title Variable

  • Just a quick one, I’ve had a look around but couldn’t see anything on it;

    Basically I’m after the page title of the current page. the_title() function gives this, but it prints it. I need to get hold of the title to work with as I wish to compare the page title to an array in order to set additional functions on certain pages. (ie if(in_array($page_title,$title_array)) { some_function(); }

    TIA

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page Title Variable’ is closed to new replies.