WordPress.org

Support

Support » How-To and Troubleshooting » wp_title() output as variable

wp_title() output as variable

  • I would like to output the result of wp_title() to a string variable. Which file and function I have to modified?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just use it in this manner:

    $my_title = wp_title('', false);

    The second parameter (display) when set to false returns the value of the function.

    Thanks for your guide. It works for me.
    I use the variable with BBClone for my blog.

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