Home Forums Backend Issues (wp-admin) Using ACF fields in a plugin's settings page?


Using ACF fields in a plugin's settings page?

  • I would like to use ACF fields in my custom plugin’s settings page, but can’t figure out if this is possible. I know I can use ACF’s acf_add_options_page() to create a custom options page in the main WP Admin sidemenu. However, I already have a settings page created for my plugin (e.g. Settings > My Plugin’s Settings Page) and ideally I could load/save ACF fields there.

    For an options page added via ACF, I know I can choose it in the Rules section with the settings for an ACF Group, but as far as I can tell there’s no way to select my plugin’s settings page in the ACF Group settings.

    For example, I can get ACF fields to display on the first URL,which was created using acf_add_options_page(), but I can’t get them to work with the latter URL which was created within my plugin using the Settings API.


Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.