Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 846433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:36:49+00:00 2026-05-15T06:36:49+00:00

I was wondering if name in the leave comment template can be separated to

  • 0

I was wondering if name in the leave comment template can be separated to allow for first name and last name as opposed to just name?

Did I explain myself right? if so can someone point me to an example.

I would like to do this without having to install a module.

Thanks guys,

Matt

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:36:49+00:00Added an answer on May 15, 2026 at 6:36 am

    On the front end, you could break the name form field into two fields, then join them back together with a function hooked onto a filter, just before the comment is saved.

    But at the end of the day, the name parts will still be stored as one single string in the database.

    An example would be to place this in your theme’s functions.php file;

    function my_comment_author_join()
    {
        $_POST['author'] = $_POST['author_first'] . ' ' . $_POST['author_last'];
    }
    add_action('pre_comment_on_post', 'my_comment_author_join');
    

    Then edit your theme’s comments.php file, and replace the author field with two text fields, with the names author_first and author_last respectively.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering how can I list the user tables name with its primary
Just wondering, having the following simple code: var object1 = { name: function (){
I'm wondering if the index of an array can be given a name in
Hey all, I'm just wondering if it is possible to get the name of
I'm wondering if i can use 2 variables with the same name on the
I'm wondering whether you can get the client's machine name. I guess you cannot.
I am wondering how to get the relative path name? Any existing library can
Just wondering. We usually trim a user name in various forms in our ASP.Net
I'm just wondering why name mangling was never standardized by the C++ standard. Clearly
I was wondering how to name new objects something different each time a method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.