Title: Codex Documentation Incorrect?
Last modified: August 20, 2016

---

# Codex Documentation Incorrect?

 *  [nchaud](https://wordpress.org/support/users/nchaud/)
 * (@nchaud)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/codex-documentation-incorrect/)
 * Hi
 * I’m using 3.4.2 and I’m looking at this Codex docs page as the wp_title is giving
   me [problems on my site](http://www.gettechspecs.com) :
 * [http://codex.wordpress.org/Function_Reference/wp_title](http://codex.wordpress.org/Function_Reference/wp_title)
 * It says about the second parameters to this function
 * >  $echo
   >  (boolean) (optional) Echo the title (False) or return the title for
   > use as a PHP string (True). Default: True
 * But it looks to me like true means echo the title and false means return the 
   php string. If I do this :-
 *     ```
       echo 'title is '.wp_title('').' _END_';
       ```
   
 * I get output :-
    _ title is \_END\_ My\_Title  Implying that it did an echo after
   my php statement and did **not** return the php string.
 * However, if I change it to use the non-default value of false :-
 *     ```
       echo 'title is '.wp_title('', false).' _END_';
       ```
   
 * I get :-
    _ title is My\_Title \_END\_
 * Implying that the string was returned, so I conclude false => returns the title
   for use as a PHP string.
 * Any thoughts?

The topic ‘Codex Documentation Incorrect?’ is closed to new replies.

## Tags

 * [parameters](https://wordpress.org/support/topic-tag/parameters/)
 * [wp_title](https://wordpress.org/support/topic-tag/wp_title/)

 * 0 replies
 * 1 participant
 * Last reply from: [nchaud](https://wordpress.org/support/users/nchaud/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/codex-documentation-incorrect/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
