WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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 create a new theme and I the page / post is divided to:

  • Title
  • Slogan
  • Content

I want to add a slogan field in the admin panel, where the user adds or edits a post or page. After I will use in update_option function.. just the part of adding this is the problem. I think there is a function or filter which does it but I don't know which.

Thank you.

share|improve this question
I believe you are looking for a way how to add a meta box (that's what it's called in WordPress terminology) to your page edit screen. Please checkout the answer to a related question: How to add meta boxes to the 'Add new post' screen? – Michal Mau Jan 23 '11 at 21:17

You could also use Advanced Custom Fields Plugin. It allows you to create whatever type of field you wish, and then adds it to posts or pages (or both). After that, it is pretty simple to call within the wordpress loop.

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.