I’m sure there’s an easy solution to this, but I’m wondering how to add custom input fields in the WordPress editor.
My goal is to have an image uploader to the right of the main editor, when an image is uploaded, it puts the image url into a custom field
that I an access in my theme.
What’s the best way to go about this? I’ve researched & tried plugins, but I’d rather create my own as they all produced bugs.
Thanks for any help/advice.
Shane
Maybe this tutorial will help you.
EDIT: some code in case the original source gets lost.
1st) Add the meta box to all the post types we need
2nd) Set up our callback (the content of the meta box)
3rd) Save our data
4th) Display the data from the meta box.