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'm trying to add a custom field to the built in Page content type. I've found lots of tutorials on how to do this for a single page, but I want to do this for all pages in my theme.

Please point me in the right direction.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

If you want to do that yourself, take a look at function add_meta_box (don't forget the examples). That page has almost everything you need to create a custom meta box for a certain post type.

If you want to simplify your work, you might want to use an utility like Meta Box plugin. This plugin can help you register your custom meta box with many built-in 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.