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 want to delete content block and add custom fields for image, like on this screenshot.

I don't want to add custom content type, I just want to edit defalt post type.

Any solution?

share|improve this question
    
Are you wanting to remove the editor from the posts page and only display the custom fields box? Or do you simply want to remove the_content(); from the output? –  Jeremy Jared Feb 17 '12 at 0:23
    
Yes I want to remove/(If removal is not possible or too invasive I can hide) editor from post page and display the custom fields box. I know this is not safe but A) is simpler than modification of a few plugins for handling cutom content type. B) if I'll need "normal posts" with ease I make content type for posts. C) I do not want to give users the opportunity to write anything except post title –  m0n085 Feb 17 '12 at 1:18

2 Answers 2

Refer to the manage_posts_columns filter, and also the manage_posts_custom_column action.

Here is a really old tutorial, linked from the Codex, that might be instructive. (Caveat: it's from 2007; some things might be out of date.)

Edit

The above hooks are for the manage posts screen. To remove/add meta boxes to the edit post screen, see add_meta_box() and remove_meta_box(), which can be invoked inside a callback function hooked into add_meta_boxes.

Here's a tutorial for customizing meta boxes on the edit-post screen.

share|improve this answer

I found something:

add_action('init', 'remove_editor_init');
function remove_editor_init() {
remove_post_type_support('post', 'editor');
}

And it's working for me ;) thanks guys

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.