I’m looking to create my own plugin for Podcast Episodes. I’ve created the plugin that registers a Custom Post Type for Podcast Episodes. Love it!
Now I want to add a couple of custom fields, but everything I find tells me to use a plugin (ACF) or some talk about adding metadata fields to each post individually (ewww no).
I want to have everything contained within my plugin, so my understanding is that if I use ACF I would have to configure the Custom Post Types every time I install my Podcasts Plugin? Surely there is a way for me to make this all-in-one and code the creation of the custom fields in the plugin?
Help!
Note: I’ve just gotten back into coding websites after a long hiatus – I’m not scared to code something myself, and in this particular case I want to create my own plugin as an exercise (and a bit of fun!) to refamiliarise myself with WordPress as much as anything else. I just need a little direction!
[ad_2]
You’re looking for custom meta boxes, which would contain the fields you want to include/create: [https://developer.wordpress.org/plugins/metadata/custom-meta-boxes/](https://developer.wordpress.org/plugins/metadata/custom-meta-boxes/)
By searching for ‘custom fields’ on Google you’ll typically only ever find suggestions to use ACF or the built-in custom fields functionality you have already seen where you have to type the field name/values in that horrendous built-in custom fields section.