Ever want to capture more data when creating a post or a page? Want to add some custom fields to your custom post type?
With WordPress’s metabox functionality, you can! There are a few moving parts here, so let’s walk through them one-by-one.
Quick aside: I’m going to share some PHP snippets. Place them in a plugin, or (less ideally) your functions.php
file.
Create your metabox #