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 have looked everywhere and there's been a few attempts to do this in my themes function.php file but no luck.

What I'm after is that to make it easier for my Contributors, that the add new post is in one column, easier for them to do it step by step.

I know I can change it in the screen options but I would like it by default so then they have it all done for them.

share|improve this question

migrated from stackoverflow.com Jul 3 '11 at 11:49

This question came from our site for professional and enthusiast programmers.

1 Answer 1

This is a tricky one, there is a filter called meta-box-order_{$page} where page is the name of the post type so for post you can use:

add_filter('meta-box-order_post','one_column_for_all');

 function one_column_for_all($result, $option, $user){
    $result['normal'] = 'postexcerpt,formatdiv,submitdiv,trackbacksdiv,tagsdiv-post_tag,categorydiv,postimagediv,postcustom,commentstatusdiv,slugdiv,authordiv';
    $result['side'] = '';
    $result['advanced'] = '';
    result $result;
 }

this is untested!!! but should work.

share|improve this answer
    
I tried putting that into my functions.php Bainternet but no luck. I have tried a few snippets of code now but nothing seams to actually work this issue. Thanks, Art –  user6750 Jul 5 '11 at 8:58
    
How does this affect the screen options panel? What if a user then switches to two-column, will all their settings be lost upon a page refresh? –  kovshenin Aug 4 '11 at 10:25
    
Yes this overwrites the user settings when refreshed –  Bainternet Aug 4 '11 at 14:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.