Hi,
I'd like to have the name used behind the @ symbol be the preferred display name of the user rather than the username. Is this possible to do? I didn't see a configuration option and I'm wondering if it's something I missed or if there's some hooks / filters available to make this change.
Thanks!
Hi fractalweb,
WordPress has three different names for Users:
- Username (Login) – Being used for website authorization (login, sign-in) action
- Display Name – Other users and guests see in user profile details and next to user posts (post author name).
- Nicename – Unique name
After a regular user registration process, Username, Display Name, and Nicename are set the same. For example, If you register a user with “Martin59” Username your user names look like this:
- Username – Martin59
- Display Name – Martin59
- Nicename – martin59
The wpDiscuz User & Comment Mentioning addon uses WordPress nicename. The filed is being generated based on the username (as mentioned above). In your case, the nicename is matched with the username. So you see the username as a mentioning nickname.
You can find and change the nickname filed's value in wp_users table. Just find the users_nicename column.
This article may be helpful for you: https://wordpress.2bearstudio.com/batch-rename-wordpress-user_nicename/
Please note all questions related to paid addons should be asked in the gVectors.com forum. Here we only support issues related to the free wpDiscuz plugin.
Thank you for the quick reply! Unfortunately, we want this to be automatic. This looks like it's a one-time thing to fix existing users. Regardless of the setting we use for nickname / display name, the plugin is displaying full username and using this for mentions.
Thank you for pointing out the correct support forum. I will bring this to their attention there and hopefully be able to resolve this.