WordPress.org

Ready to get started?Download WordPress

Forums

Newsletter Sign-Up
First name also added to last name in MailChimp (2 posts)

  1. sabadil
    Member
    Posted 1 year ago #

    Hi. I have Subscribe With Name? checked, and FNAME in Name Identifier. In Form Settings, I put "First Name" in Name Label and checked the box for name required. I did a test signup. In the MailChimp list, the first name is in both first name and last name. Is there a way to keep last name field blank?

    Thanks!

    http://wordpress.org/extend/plugins/newsletter-sign-up/

  2. Souljah67
    Member
    Posted 1 year ago #

    I had this same issue. In my sign up I only have First Name and Email Address and it was adding the First Name to the Last Name as well.

    This is the way I fixed it and not sure if it is the proper way but it worked for me, but save a copy of your original file just in case.

    In the frontend/NewsletterSignUp.php file on line 507 just delete this line of code:

    $request['merge_vars']['LNAME'] = substr($name,strpos($name,' '));

    Let me know if that worked for you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic