WordPress.org

Forums

User Submitted Posts
[resolved] Author Display Name (5 posts)

  1. simonknox
    Member
    Posted 1 year ago #

    Only registered users can post to my site and their usernames are their email addresses (don't ask)

    When a USP is created it always shows the username as the Author rather than the Display Name. Is there a way around this as I'd rather not have everyone's email addresses appearing on the site?

    This doesn't happen for posts submitted via the admin pages.

    Cheers
    Simon

    http://www.kingfishercanoeclub.co.uk/the-trasher/

    https://wordpress.org/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    Yes it should be possible via the setting "Use registered username for author?"..

  3. simonknox
    Member
    Posted 1 year ago #

    Yep - I select that and it does use the users registered username and displays this at the bottom of the post.

    What it doesn't do use the name that the user has selected as their Public display nameIn their user profile.

    In my case the username is their email address and their public display name is first last.

    For the moment I've configured it so the user has to provide their name in the form, and this displays correctly in the post. Though this means all the posts are actually made by the same user - just the display name is different.

    Cheers
    Simon

  4. cmtusa
    Member
    Posted 1 year ago #

    Having same problem. Did you resolve it, simon?

  5. Jeff Starr
    Member
    Plugin Author

    Posted 11 months ago #

    Ah sorry, I had misread your post. That is something that can be done with WordPress itself, here is an example:

    <?php global $current_user;
    	get_currentuserinfo();
    	echo 'User display name: ' . $current_user->display_name;
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Submitted Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.