Adding a full name to a WordPress profile title means making sure the person’s actual name — not a username, “Post #123,” or a blank field — appears as the title of their profile. This comes up in two common situations: setting a user’s public display name, and generating the post title for a “Profile” or “Person” custom post type from separate first and last name fields. Both are simple to fix once you know where the relevant fields live.
Setting a Full Name as the User Account Display Name
If you’re trying to make a WordPress user’s actual name show up wherever WordPress displays post authorship or account info, this is controlled from the user’s profile settings, not the post editor.
To change your public display name, go to Users » Profile from the WordPress dashboard — if you don’t see the Users menu, you’re not an administrator on the site, but you can still edit your own profile from the Profile menu.
Once there:
- Scroll to the Name section. This is where the First Name, Last Name, and Nickname fields live.
- Fill in your first and last name fields. After filling in these fields, click the dropdown menu next to “Display name publicly as.”
- Select your preferred display format. You can choose to display your first name, last name, full name, nickname, or username as the name that shows publicly with your posts.
- Save changes. The new display name applies immediately to author bylines, comment attribution, and anywhere else WordPress pulls the display name.
Note that the display name field is separate from the username used to log in, so changing it doesn’t affect how the person accesses their account.
Automatically Setting Display Names for New Users
Manually updating each user’s display name works fine for a single site owner, but it becomes tedious on a site with many registered users or authors. A code snippet can automate this using WordPress’s user_register hook, which fires whenever a new account is created.
This hook can be used to automatically set the display name pattern to “firstname lastname” for new users, applying the pattern to both the display_name and nickname attributes as soon as the account registers. This is a good option if you manage a multi-author site and want consistent name formatting without relying on every contributor to update their own profile.
If you’d rather not maintain custom code, a plugin can handle this instead. The Force First and Last Name as Display Name plugin hides the Display Name field on the Edit Profile screen entirely and always sets the display_name field to the user’s first and last name — falling back to their username if those fields are empty. It also includes a batch tool for updating existing users. This batch process runs from Settings > Force First Last in the WordPress admin and updates the display name for all existing users at once, not just new registrations.
function generate_profile_title_from_name($post_id,$post,$update){if(defined('DOING_AUTOSAVE')&&DOING_AUTOSAVE||wp_is_post_revision($post_id)||$post->post_type!=='profile'||!current_user_can('edit_post',$post_id))return;remove_action('save_post','generate_profile_title_from_name',10);$first_name=trim(get_post_meta($post_id,'first_name',true));$last_name=trim(get_post_meta($post_id,'last_name',true));$full_name=trim($first_name.' '.$last_name);if($full_name!=='')wp_update_post(['ID'=>$post_id,'post_title'=>$full_name]);add_action('save_post','generate_profile_title_from_name',10,3);}add_action('save_post','generate_profile_title_from_name',10,3);
Generating Profile Post Titles From First and Last Name Fields
If you’re working with a “Profile” or “Person” custom post type — common in staff directory or team page setups — the post title itself needs to reflect the person’s full name, and some plugins can generate this automatically from separate name fields instead of requiring manual entry.
You can enter the person’s full name directly in the Title field to generate the profile’s permalink, or use the First and Last Name fields in the Profile Details metabox to have the title generated automatically. This second option is worth using whenever it’s available, since it keeps the post title, the permalink, and the structured name data in sync rather than risking a typo between the two.
Other Profile-style custom post types follow a similar pattern with mandatory name fields. When adding a person, you fill out the First Name and Last Name fields directly, and this information generates the visible profile details rather than needing to type a full name into the generic post title field.
If you’re setting this up yourself in a custom post type, the typical approach is hooking into save_post to concatenate the first and last name meta fields and update the post title programmatically — mirroring what these directory plugins do internally.
Customizing the Format Further
Some plugins go beyond a simple first-and-last-name pattern and let you add prefixes or suffixes — useful for titles, credentials, or honorifics.
The User Display Name extension for ProfileGrid lets you customize your profile display name with predefined prefixes and suffixes, mixing and matching different patterns, including adding a suffix for an education qualification or other credential after the username. After configuring the pattern, you switch on the Enable Display Name button to activate the settings, and the updated display name appears on the front end of the profile page.
Fixing Display Name Conflicts With Other Plugins
If you’re running forum software or membership plugins alongside WordPress, the display name field sometimes needs to sync correctly with those systems too, since many pull the name directly from the WordPress user table.
Many forum applications and other plugins, like WooCommerce, pull the display name directly from the WordPress user database — so if the public display name is set to something like an email address or a generic nickname, it won’t look right in a forum where people expect to see first names. A dedicated plugin can override the default publicly-displayed name options per user role if the built-in dropdown doesn’t offer enough control for this kind of setup.
Join The Discussion
Have you run into a plugin or theme that handled profile titles differently than what’s covered here, or found a cleaner way to auto-generate names for a custom post type? Share your setup or any snippets that worked for you below.