Home › Forums › Backend Issues (wp-admin) › Adding ACF Fields to a Custom Plugin › Reply To: Adding ACF Fields to a Custom Plugin
I’ve created several plugins that use ACF.
For 1, you’ll need to use an options page and add it as a sub page of any other pages you have for the plugin.
As far as 2 goes, this is possible. You’ll need to define your field groups in PHP and add them based on the selections. I generally built the groups in ACF and then export them. Once I have them there I start break them apart and building the code to add them where and when they need to be added
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.