I am trying to make usability of WordPress custom fields admin easier in my theme. I saw it in ElegantThemes' eStore theme. Only I couldn't figure out how to do it in my custom theme because I couldn't find the code in eStore theme files.

I use custom fields for my featured images and it's small thumbnail version. I have to upload both those pictures and from up above on the page, right below the title, copy the link and then choose the right custom key in custom fields below and paste it and the add it. Then repeat the process for another image.

enter image description here

I wanna make it simple. Make two text boxes and place the upload image button in front of them. As in the image below.

enter image description here

If possible I even wanna automate the copy and paste process. i.e.: The image link for the full size image automatically shows up in the text box on upload. Even elegant themes doesn't do that, but I would love to.

Any ideas on how I can do this. This will make the posting just a bit faster and more importantly make explaining the process to writers much much easier.

I am still looking into the code if I can find it. Any help would be greatly appreciated.

Thanks in advance.


1 Answer 1


Look at add_meta_box in the function reference. You can add a meta box in there, and within it add a number of input elements for your fields. You can also add multiple meta boxes if they're unrelated elements.

If you want to look through the eStore theme, you're probably looking for add_action('add_meta_boxes',...) (if it's WordPress 3.0 or after), or add_action('admin_init',...)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.