Support

Account

Home Forums ACF PRO Adding a repeater field to member area

Solving

Adding a repeater field to member area

  • Im using the Restrict Content Pro for a membership site im working on and im wanting to add a ACF repeater field to the member area.

    This article (https://pippinsplugins.com/adding-custom-user-fields-restrict-content-pro/) shows how to add custom user fields manually to display in the members (which is almost what im after), but instead i want to use a ACF field as i need it to be the repeater.

    The article shows how to add fields, but how do i add a ACF field instead?

  • Hi @will-lawrencefuturform-co-uk

    You can use the acf_form() function with the “form” option set to false. This will allow you to show the input fields without generating the form. That way you can add it to the Restrict Content Pro’s form.

    But please keep in mind that this will only show the input fields. It won’t process the data. To process the data, you need to follow the guide in the link you’ve shared.

    I hope this makes sense 🙂

  • Hi James,

    Thanks for getting back to me.

    Sorry im not sure i explained myself too well. The custom fields are for the back-end. Iv used the acf_form() function before, but thats for displaying the form on the front end isnt it?

    I just need to register the new custom fields in the members section of the backend, which is basically like the ‘Users’ section.

    I wasnt sure as well if i could create a rule within ACF to display it in ‘Members’? Like you can assign it to a ‘User Form’ i didnt know if it would be an easier way to set up a rule to display it in the members?

    Thanks

  • Hi @will-lawrencefuturform-co-uk

    ACF has a feature that allows you to create a custom location rule, but it depends on how Restrict Content Pro adds the Members page. You can only show the rule for an edit screen (page / post / user / taxonomy / attachment / etc). This page should give you more idea about it: https://www.advancedcustomfields.com/resources/custom-location-rules/.

    If the Members page is not an edit screen, then the only thing you can do is to use the acf_form() with the “form” option set to false. Please bear in mind that you can use acf_form() on the backend too, but you need the correct way to process the data.

    I hope this make sense 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.