WordPress.org

Ready to get started?Download WordPress

Forums

MailChimp Comment Optin
Name value not passed to Mail Chimp (3 posts)

  1. devra
    Member
    Posted 1 year ago #

    Thanks for this great plugin. The email address entered in the comment is being added to the MailChimp list just fine. But the name field is not being passed. Is that by design? Or might this be a problem with WordPress 3.4.1?

    And if you do mean to pass the name value, how do you resolve the fact that the WordPress post comment form does not split the name into first and last, whereas Mail Chimp does? Splitting on the first blank character would be better than nothing, but might result in some improper splitting. Life isn't perfect.

    Thanks.

    http://wordpress.org/extend/plugins/mailchimp-comment-optin/

  2. Parakoos
    Member
    Posted 1 year ago #

    I've got the same problem. Sad to see that the issue is an old one...

  3. Parakoos
    Member
    Posted 1 year ago #

    Well, I found the error. This section of the code:

    if ( ! empty( $tgm_mc_comment_data['comment_author_name'] ) )
    	$commenter_name = $tgm_mc_comment_data['comment_author_name'];

    should be

    if ( ! empty( $tgm_mc_comment_data['comment_author'] ) )
    	$commenter_name = $tgm_mc_comment_data['comment_author'];

    <sigh>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic