christianwach / civicrm-wp-profile-sync

Keeps a WordPress User profile in sync with a CiviCRM Contact and integrates WordPress and CiviCRM Entities with data synced via Advanced Custom Fields.
https://wordpress.org/plugins/civicrm-wp-profile-sync/
GNU General Public License v2.0
13 stars 17 forks source link

ACF integration: no Custom fields visible under "ACF Field Group > Field type" #17

Closed yurg closed 3 years ago

yurg commented 3 years ago

It is CiviCRM 5.29, ACF 5.9.5 and CiviCRM Profile Sync 0.4 After reading "Links between Fields" I was searching for "Constituent Information" fields on ACF "Edit Field Group > Add FIeld > Field Type" and found nothing, only basic Contact fields are listed, like ID, Contact Reference, Address, etc. I believe I've followed all pre-requested setup steps: Custom post type creation, linking it to Content Type, etc. It feels like some configuration steps are missing still, like cache clear or..? Please advise, thank you.

christianwach commented 3 years ago

@yurg Hard to tell how you've got your site set up, but what's important is to choose the matching Field Type. So, for "Most Important Issue" you need to select "Radio Button" in ACF and then you should see:

Screenshot 2021-04-13 at 12 22 34

Same goes for "Marital Status" which is an ACF Field of type "Select":

Screenshot 2021-04-13 at 12 25 12

Similarly, you need a "Date Picker" ACF Field to map to "Marriage Date":

Screenshot 2021-04-13 at 12 26 20

Hope that helps.

yurg commented 3 years ago

@christianwach Thank you, right, sorry, was under impression it is right in the "main" select.

customfield

christianwach commented 3 years ago

@yurg FYI those are custom ACF Field Types that you can use to sync particular CiviCRM Entities (or parts thereof). I think the docs explain what each of these does and why they're needed.

christianwach commented 3 years ago

@yurg Except... is that really "Constituent Information: Most Important Issue" as an ACF Field Type in that list? How did that get there? Is it a custom ACF Field that you've created?

yurg commented 3 years ago

@christianwach Right, docs! And no, it is not real "Constituent Information: Most Important Issue", just made up a visual of where I expected it to be. Thank you for your help, struggling with country display now - must be "Select" field. Guess it is documentation reading time now.