BuddyDev

Search

[Resolved] Auto join groups – cron job

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #39640

    Hello Darshan,

    What sorts of problems you are facing with the second group. Please do let me know what type of field you are using for the group field.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 19
    Darshan on #39648

    Hi Ravi,

    I am using the ‘Group’ field as ‘Single Line Text’.

    When the ‘Group’ field is set for example as ’12’ (without inverted commas), the sync works and subscribes user to the relevant group set in the rule. When the ‘Group’ field is set for example as ‘12,13’ (without inverted commas), the sync doesn’t work and user doesn’t get subscribed to any groups.

    Let me know if this helps or need more information.

    Thanks for your help

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #39650

    Hi Darshan,
    Try using 12,13 instead of putting it inside a quote and then try.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 19
    Darshan on #39655

    Hi Brajesh, I already tried that but doesn’t work. Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #39658

    That’s strange. Ravi or I will test it again and get back to you.

    Regards
    Brajesh

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #39679

    Hello Darshan,

    I have tested this code with the custom group field and it is working fine for me. My user successfully removing from the group which not there in the newly updated field info and joining those groups, not a member of.

    Field screenshot:
    https://tinyurl.com/ygrbuyev

    Please check.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 19
    Darshan on #39684

    Hi Ravi,

    That’s weird. Is it possible to send you my staging site wp admin info and if you can check? Maybe I have missed something.

    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2935
    Ravi on #39690

    Hello Darshan,

    Yes, Please share your staging credentials so that I can check. Also, share the code you are using.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 19
    Darshan on #39700

    Hi Ravi,

    Can you share your email address or a secure way for me to send the credentials?

    Thanks

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #39708

    Hi Darshan,
    Please share via our contact form. I will forward it to Ravi.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved