Home › Forums › Backend Issues (wp-admin) › How to programatically create meta fields for custom page template? › Reply To: How to programatically create meta fields for custom page template?
May I ask, why do you need this / what are you trying to accomplish that you can’t use the admin UI?
Basically the plugin uses wordpress custom fields functionality (https://codex.wordpress.org/Custom_Fields) and if you wanted to manually create similar custom fields with your own metaboxes, you can find tutorials for that through google. I think you would be better off creating your own custom fields than trying to programatically add news ones through ACF system passing it’s UI. I’m sure if you start digging into the source code of ACF, you can find out how it builds the fields etc and from there you could call the functions etc. yourself…
https://codex.wordpress.org/Function_Reference/add_meta_box this should get you started on creating your own fields…
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.