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.

Is there anyway to disable custom dragging and sorting of the posting fields in admin?

From time to time, the fields gets dis-ordered, and I have to sort them back to the way I want it, witch is kinda annoying.

I want this also because I'm going to have other editors on the site, and I want a standardized order for everybody.

I also want the excerpt-field to be above the content-field. Is all this possible?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I can answer the last part: "I also want the excerpt-field to be above the content-field. Is all this possible?"

The only way to move anything above the content field is via JavaScript--there are no php hooks or filters up there. It's kind of a lame workaround because you can usually see (visually) the jump as the fields reorder. But AFAIK it's the only way to do this.

jQuery(document).ready( function($) {

    // On DOM ready move the excerpt field above the WYSIWYG field
    if( document.getElementById('postdiv') && document.getElementById('postexcerpt') ) {
        jQuery('#postexcerpt').insertBefore('#postdiv');
    } else if( document.getElementById('postdivrich') && document.getElementById('postexcerpt') ) {
        jQuery('#postexcerpt').insertBefore('#postdivrich');
    }

});
share|improve this answer
    
Yes, that worked. –  Martin Aleksander Dec 14 '10 at 21:58

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.