Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter bjones1985

    (@bjones1985)

    I don’t need help. Instead of making my own RSS plugin I wanted to use yours. I get errors all over. All I have installed is the developer plugin, theme check plugin and a blank underscores.me theme. Nothing else and the most recent version of WordPress. This means there is something wrong with the plugin. Not my fault. All I said was it is not up to standards. I am sure the developer or developers who created this could fix it. I don’t have the time to.

    Thread Starter bjones1985

    (@bjones1985)

    I appreciate the response. It isn’t the real API or list id. I think the main problem was there was a caching issue in my local dev environment. I left my computer for a couple of hours and when I came back it started working. It was magic lol.

    Thank you for responding though.

    Thread Starter bjones1985

    (@bjones1985)

    UPDATE

    added this to the JS file data: {action: 'mailchimp_submit', 'EMAIL': email}, and it now sends email notification saying you are subscribed. But it doe not add the emails to the list in MailChimp.

    This is the function now

    add_action('wp_ajax_mailchimp_submit', 'mailchimp_submit');
    add_action('wp_ajax_nopriv_mailchimp_submit', 'mailchimp_submit');
    
    function mailchimp_submit() {
    
        require_once __DIR__.'/inc/MCAPI.class.php';
    
        $listId = '38e7d0812f';
    
        $api = new MCAPI('9100a95dd06efdbf58ec87bab613cee8-us5');
    
        $subscriberemailID = $_POST["EMAIL"];
    
        $retval = $api->listSubscribe( $listId, $subscriberemailID, $merge_vars = null );
    
    }

    Not sure why the emails are not added to the list in MailChimp but the confirmation emails are being sent out. Any suggestions????

Viewing 3 replies - 1 through 3 (of 3 total)