WordPress.org

Ready to get started?Download WordPress

Forums

Comments - First name last Initial instead of Username (9 posts)

  1. Roger Huston
    Member
    Posted 2 years ago #

    Hello,

    I have found s several posts related to this topic, but they are all for WP 2.x and don't seem applicable to 3.x:

    http://wordpress.org/support/topic/user-first-name
    http://wordpress.org/support/topic/first-name-and-last-name-as-username

    I am trying to globally display First Name and Last Initial. As we connect to Facebook, the user name field is populated with FBxxxxxxxxxx and we would like it to display more human readable.

    Can anyone point me in the right direction?

    - Roger

  2. Roger Huston
    Member
    Posted 2 years ago #

    Hello,

    Wow, no responses in a week. I thought wordpress was one of the most active communities on the internet.

    Please, can anyone help?

    - Roger

  3. dtrickky
    Member
    Posted 2 years ago #

    Hi Roger,

    This may help.

    http://codex.wordpress.org/Function_Reference/the_author_meta

    Have you looked there?

    I'm not sure exactly what you're trying to do with Facebook, perhaps explain a bit more?

  4. Roger Huston
    Member
    Posted 2 years ago #

    Hello,

    We are allowing users to use their FB accounts to post comments on our blog. By default, the blog displays the username as FB379219324 or something similar. What we wan to do is display First Name, Last initial.

    The problem that I have is where do we change that. The interface allows each user to change what is displayed, but we want to change the setting globally, both future and past posts.

    So, thank you, the function will help, but the question is where do I use it? comments.php only makes a call to a function that processes all the posts, but does not give access to the individual post level.

    So where do I go to fix this?

    - Roger

  5. dtrickky
    Member
    Posted 2 years ago #

    Are you using some sort of plugin for the FB interaction?

  6. Roger Huston
    Member
    Posted 2 years ago #

    yes, and no.

    It is a home built plug-in that pulls the info from FB and populates the fields. My question is that once the information is pulled, how can I change the display?

    - Roger

  7. dtrickky
    Member
    Posted 2 years ago #

    It is hard to say for sure.

    I've seen some themes implement comment functions in functions.php, others in comments.php but bringing in FB may make things a bit different.

    I would suggest finding a similar plugin that is already out there and seeing how they go about doing it.

    Sorry I'm not much help, best of luck.

  8. Roger Huston
    Member
    Posted 2 years ago #

    Well, the theme is pretty basic, it is more like a customization of the default theme than anything else. No comment plug-ins or anything.

    The comment.php in the template basically calls a Walker type function that I can't fine that walks down the comment tree. That is what I need to find.

    - Roger

  9. dtrickky
    Member
    Posted 2 years ago #

    There is a good chance that function is in the wp-includes folder, which may not be the best thing to edit.

    Customizing WP Comment Fields can be tricky.

    This article http://www.1stwebdesigner.com/wordpress/comment-form-customization/ is about the best I can find on working with the comment field. Hope it helps.

Topic Closed

This topic has been closed to new replies.

About this Topic