• Resolved wasanajones

    (@wasanajones)


    Hi – thanks for your GPL plugin.

    I’d like to use ACF advanced custom fields as associated with being profile fields (ie display on member directory and/or member profile page)

    ideally public display of these fields would require the profiled member to have a certain membership level. ie basic membership has wordpress profile fields while premium membership adds ACF fields to be displayed

    I looked at this pmpro blog article https://www.paidmembershipspro.com/restrict-the-display-of-advanced-custom-fields-acf-fields-by-membership-level/ but it is about blocking access by a reader user. I’m trying to make memberships premium based on what gets displayed in their profile

    any ideas, instructions, tutorials, referrals would be greatly appreciated

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @wasanajones

    Thank you for using Paid Memberships Pro.

    To do this, it would require a bit of custom code. This is what the guide you mentioned covers with real code examples you may use.

    You may be able to use either the pmpro_has_membership_access or pmpro_hasMembershipLevel function to get information about the member. You then can use the ACF get_field to retrieve the data and their the_field to display the fields.

    Another solution would be to use the acf/format_value filter to hide fields to non-members with a combination of the above.

    I hope this helps give you a general idea on how to achieve this and a path forward.

    Thread Starter wasanajones

    (@wasanajones)

    thanks…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To… associate ACF fields as profile fields’ is closed to new replies.