wp_title() output as variable (3 posts)

  1. theplayers
    Posted 11 years ago #

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

  2. Kafkaesqui

    Posted 11 years ago #

    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.

  3. theplayers
    Posted 11 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic