Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

You need to create metaboxes for the custom Post meta data for which you want to add UI. Refer to add_meta_box() for implementation documentation.

EDIT

Based on your comment, it would appear that, in order to change an existing Post custom metabox, you need to find the callback function referenced by add_meta_box(). Can you post some relevant code - primarily, the add_meta_box() calls themselves?

share|improve this answer
    
Thanks for the answer, but that much I knew. I have add-meta-box as one of my tags. But I wanna add_meta_box for custom fields, which already exists on the page, only I wanna change the UI as above images show. –  Aayush Jul 17 '11 at 19:11
    
Hmm, okay - we'll get there! See updated answer. –  Chip Bennett Jul 17 '11 at 19:19
add comment

Once again A simple way to do that would be to use Verve Meta Boxes plugin which lets you define a metabox with a simple UI (no code is needed) and you have an options to add upload fields.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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