0

I would like to use a custom meta box to build the UI for the post title, instead of the usual field 'title' supplied on WordPress post screens.

I've build the meta box, the question is now how to save that field as the post_title. Anyone has done this before?

6
  • 1
    I recommend against this. Use the standard title field rather than a nonstandard version
    – Tom J Nowell
    Commented Aug 20, 2012 at 16:20
  • Why do you want to create a new/separate UI for the post title? What are you trying to accomplish? Multi-line titles? Title/subtitle combinations? We need to know what you're doing in order to be able to answer this question. Commented Aug 20, 2012 at 16:24
  • I wanted to give it the appearance of a meta box, that's the main reason. But I could also think of a few other scenarios, like having HTML in the title.
    – urok93
    Commented Aug 20, 2012 at 17:14
  • Is it maybe possible to Change the "Enter Title Here" text?
    – urok93
    Commented Aug 20, 2012 at 17:24
  • I would also like to hide the slug and view post button that appear beneath the title by default.
    – urok93
    Commented Aug 21, 2012 at 8:10

1 Answer 1

0

Is it really necessary to override default Wordpress title filed? instead I'd recommend using a different meta key such as - my_the_title to store the title into database.

And then use wordpress function - get_post_meta() to show it, instead of the_title() function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.