2

Our organisation has one Membership type in CiviCRM, and we have that syncing with a Group in Wordpress using the CiviCRM Wordpress Member Sync plugin. All is well.

We also have a Guest sign-up form (using a Civi Profile with WP account creation required) which adds them as a Contact in Civi and a User in WP, they also get added to a Civi Group (Guests) which is synced to a WP Group (Guests). All is well. [Lapsed Members should also move to this WP Group (Guests) until they renew their membership when they should get removed. Yet to be tested]

However, we sometimes need to manually add Contacts in CiviCRM ourselves (say VIP speaker for an event), and although we add these to the synced Guests group, they don't get added in WP, of course, as a WP User account is not created when we add the Contact manually in CiviCRM.

Is there a box to tick / dropdown to select for a Contact or multiple Contacts along the lines of: 'Create WP User Account from Contact'?

I have CiviCRM WordPress Profile Sync plugin installed.

I truly hope this is not a stupid question...

Cheers, Tracy

1 Answer 1

5

Add the following to your wp-config.php file:

define( 'CIVICRM_WP_PROFILE_SYNC_BULK', true );

Then select some contacts and use the “Actions” dropdown to “Create WordPress Users from Contacts”.

9
  • 1
    For those (like me :-( ) that didn't read the question carefully enough and jumped to the answer... This setting is part of the "CiviCRM WordPress Profile Sync" plugin so that needs to be installed and activated before the action shows up.
    – Aidan
    Commented Sep 9, 2020 at 9:57
  • Thank you @christian-wach. It created the user in WP. One thing though, I thought the profile sync plugin kept the first name and last name of the civiccm contact as well as the email. It has created the username in WP (mrjoeblogs), it also filled in the Nickname (mrjoeblogs), has the correct Display name in the dropdown (Mr Joe Blogs), but the First Name and Last Name fields are blank. Is this the expected result or have I missed something? Commented Sep 10, 2020 at 21:20
  • A thought: I installed profile sync via the WP plugin directory---version 0.3.2. Should I upload the 0.3.3 version from GitHub? Commented Sep 10, 2020 at 22:12
  • 1
    In the meantime, just re-save any migrated Contacts in CiviCRM and their WordPress First Name and Last Name will be populated. Commented Sep 11, 2020 at 11:48
  • 1
    Okay, I've just released 0.3.3 on the WordPress Plugin Directory - should fix the issue. Commented Sep 11, 2020 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.