Any idea how to make this work?
$title = wp_title();
The problem is wordpress automatically echoes the wp_title();
Any ideas?
Any idea how to make this work?
$title = wp_title();
The problem is wordpress automatically echoes the wp_title();
Any ideas?
You must be logged in to post a comment.
Have you even looked @ the WordPress documentation?
Its right here:
http://codex.wordpress.org/Function_Reference/wp_title
use it like so:
<?php wp_title( $sep, $echo, $seplocation ); ?>
where
$echo
is boolean (true/false)$echo
(boolean) (optional) Echo the title (True) or return the title for use as a PHP string (False).