I have a custom post type created for a directory that will end up being sorted alphabetically. I will be sorting the posts in alphabetical order by title, so I want to make sure that the Title is entered as last name/first name. Is there a way to change that default help text — “Enter Title Here” — in my custom post to something else?
Leave a Reply
You must be logged in to post a comment.
There is no way to customize that string explicitly. But it is passed through translation function and so is easy to filter.
Try something like this (don’t forget to change to your post type):
I know I’m a little late to the party here, but I’d like to add that the
enter_title_here
filter was added specifically for this purpose in WordPress v3.1.Change
your_post_type
andyour_textdomain
to match your own post type name and text domain.Sorry to dig this question up from grave, but there’s a better solution provided since WordPress 3.1. The
enter_title_here
filter.Take a look in
wp-admin/edit-form-advanced.php
at line 246 (line 329, as of WP3.5)The best way to get the title format you want is to remove the title completely and add two custom fields for the name parts with proper labels. When the post is saved, create the title per PHP.