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

share|improve this question
1  
I recommend against this. Use the standard title field rather than a nonstandard version –  Tom J Nowell Aug 20 '12 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. –  Chip Bennett Aug 20 '12 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. –  drtanz Aug 20 '12 at 17:14
    
Is it maybe possible to Change the "Enter Title Here" text? –  drtanz Aug 20 '12 at 17:24
    
I would also like to hide the slug and view post button that appear beneath the title by default. –  drtanz Aug 21 '12 at 8:10
show 1 more comment

1 Answer

up vote 0 down vote accepted

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.

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.