Support

Account

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…