Title: Set Custom Post Title Programmatically
Last modified: August 20, 2016

---

# Set Custom Post Title Programmatically

 *  [antoinicolas](https://wordpress.org/support/users/antoinicolas/)
 * (@antoinicolas)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/set-custom-post-title-programmatically/)
 * I would like a tiny plugin to set programmatically the title of posts from a 
   Custom Post Type.
    Title for this Custom Post Type is hidden to Editor, so I 
   want the system to set the title automatically for consistency, using a unique
   timecode. Could you please help me ?

Viewing 1 replies (of 1 total)

 *  [Kakoma](https://wordpress.org/support/users/kakomap/)
 * (@kakomap)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/set-custom-post-title-programmatically/#post-2726156)
 * This is long overdue but just in case someone needs it, it is best to use the‘
   enter_title_here’ filter and modify the title to hold something relevant to your
   custom post type
 *     ```
       add_filter('enter_title_here','themeSlug_alter_title_label',10,2);
   
       function themeSlug_alter_title_label($label, $post){
               if( 'book' == get_post_type($post) )
                   $label = __('Enter book title here', 'guntu');
   
               return $label;
           }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Set Custom Post Title Programmatically’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Kakoma](https://wordpress.org/support/users/kakomap/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/set-custom-post-title-programmatically/#post-2726156)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
