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?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
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):
|
|||
|
|
|
Take a look in
|
||||
|
|
|
I know I'm a little late to the party here, but I'd like to add that there is also dedicated filter for this: enter_title_here A working example:
Don't forget to change YOUR_CUSTOM_POST_TYPE to your custom post type and your textdomain if required. |
|||||
|
|
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. |
|||
|
|