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?
I don’t see why that doesn’t happen anyway if you pre-define them for your client? You can restrict the users role from accessing the Custom Fields in the admin?
Oh but now I see if you are selling a theme you want it to have predefined metaboxes for templates already in place when the customer installs the theme themselves.
Hmm I still think it’s easier for you build that not using ACF and approach this with the idea of adding custom metaboxes. As ACF is clearly meant for UI use I think this approach is the right for you. The other metabox solutions in the following link approach this programmatically and not the user friendly UI way.
This should get you going really well as you seem to be able to figure things out:
http://themergency.com/wordpress-meta-box-roundup/
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.