• We have different WordPress post categories sending to different list segments on our site. We recently tried to send a campaign to three segments at once (putting the post in three categories) but the campaign only sent to the first list segment.

    Can this bug be fixed so we can send to multiple segments with one post?

    https://www.ads-software.com/plugins/autochimp/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I am facing the same problem. Only sending to my first list group. Did you manage to fix it?

    I have noticed the same thing as well…

    I have a few groups based on my WP Categories and then I have one group called “ALL CATEGORIES” so basically a post will always be in TWO different MailChimp segments / groups… therefore the “all” segment is not ever getting any emails.

    So i MIGHT be able to work this out if I had more brain power on this Friday night, but I dont… So i’m going to post it here

    Basically we need to run a foreach on $group (i think) on the $result variable.. So foreach group, run the createCampaign function.. That is my guess. I havent gotten into testing and coding yet though

    // Set the content variables
    	$content[$htmlContentTag] = $postContent;
    
    	// Segmentation, if any (Interest groups)
    	$segment_opts = NULL;
    	if ( 0 != strcmp( $interestGroupName, WP88_ANY ) )
    	{
    		$group = $api->listInterestGroupings( $listID );
    		if ( NULL != $group )
    		{
    			$interestID = $group[0]['id'];
    			$conditions = array();
    			$conditions[] = array('field'=>"interests-$interestID", 'op'=>'all', 'value'=>$interestGroupName);
    			$segment_opts = array('match'=>'all', 'conditions'=>$conditions);
    		}
    	}
    
    	// More info here:  https://apidocs.mailchimp.com/api/1.3/campaigncreate.func.php
    	$result = $api->campaignCreate( 'regular', $options, $content, $segment_opts );
    Thread Starter bvisness

    (@bvisness)

    Let me know how that works for you. This has been a very annoying issue for us, I’d love to finally have a fix.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Posts in multiple categories only send to one segment’ is closed to new replies.