WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.