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.

First off, I have been able to successfully implement custom fields within a custom meta box in Wordpress. I understand how this works.

My question is, is there a way for me to add a custom field to an already existing meta box? For instance, I want to add field within Wordpress's "Author" meta box because it is directly related to the author of a post. I haven't found any documentation or examples of this, just many regarding adding an entirely new meta box. Is it possible to add a custom field to one of Wordpress's existing meta boxes?

Thanks.

share|improve this question
add comment

3 Answers

After some more digging, I came across a solution that works.

I simply remove Wordpress's author meta box using remove_meta_box() and then re-add it with a custom function, adding the fields I want within it.

share|improve this answer
add comment

I don't believe this is possible without editing WordPress Core. Your best option would be to deregister the metabox, then re-register your own that mimics the original functionality with your changes.

Stephen Harris outlined how to do this here: Add custom option to Standard Page Attributes Meta Box

share|improve this answer
add comment

Talking about the function reference of meta boxes, you can take a look on this topic.

share|improve this answer
 
it's not an answer, it's a link, you can add it as comment but not answer. –  JMau Aug 27 '13 at 14:16
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.