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'd like to change the title field of a post in admin panel. I'd like this field was "textarea" instead of being "input type='text'".

Would it be possible through any hook in functions.php?

Thanks in advance!

share|improve this question
    
Is this a default field or a custom field? –  m0r7if3r Feb 5 '12 at 12:38
    
It's a default field –  Vogod Feb 6 '12 at 12:34
add comment

1 Answer

up vote 0 down vote accepted

as this is a default field, i don't think it is possible to achieve what you want with the help function hooks, however you can do this by editing edit-form-advanced.php file inside wp-admin folder,

the code you may want to edit is located in line # 291,

this is the input type for title field

    <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />

Do this at your own risk as you are going to edit wordpress core file, once you edit this you might not able to update your wordpress automatically

share|improve this answer
1  
I have already thought of this option, but I didn't want to modify original code. Anyway, thank you very much. –  Vogod Feb 6 '12 at 12:35
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.