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

1 Answer 1

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

 
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.