Title: Automatically create title
Last modified: August 20, 2016

---

# Automatically create title

 *  [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * (@horroruk)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/automatically-create-title/)
 * Is it possible to automatically create a title for a post?
 * I want to have the user not worry about the title, it will just automatically
   add the user’s username as the title.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/automatically-create-title/#post-2966767)
 * Try adding something like:
 *     ```
       function my_autogenerate_title( $title ) {
       	if ( !$title ) $title = get_the_author();
       	return $title;
       }
       add_filter( 'the_title', 'my_autogenerate_title' );
       ```
   
 * to your theme’s functions.php file.
 * WARNING: Not tested.
 *  Thread Starter [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * (@horroruk)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/automatically-create-title/#post-2966825)
 * Thanks, that was quick.
 * I’ll give it a go and see what happens.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Automatically create title’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [HorrorUK](https://wordpress.org/support/users/horroruk/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/automatically-create-title/#post-2966825)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
