WordPress.org

Support

Support » Plugins and Hacks » Co-Authors Plus » [Resolved] [Plugin: Co-Authors Plus] Making authors sortable

[Resolved] [Plugin: Co-Authors Plus] Making authors sortable

  • I’ve been using the Co-Authors Plus plugin for assigning multiple authors to posts. The authors are very particular in the ordering of the names on the public-facing side of the website so I need the ability to arbitrarily order the authors.

    It turns out it’s not that hard using a line of jQuery to make the Co-Author Plus metabox sortable on the edit post screen:

    jQuery('#coauthors-edit').ready(function($) {
        $( "#coauthors-list" ).sortable({ axis: 'y', containment: 'parent'     });
    });

    Now I can drag and drop to re-order the authors and it all works! Yay! I made a little plugin for this. The source is at http://svn.kingkool68.com/projects/sortable-co-author-plus/

    The problem is the order of the authors rearranges if the post is modified in quick edit/batch edit mode on the post listing screen (the page that lists all of the posts before you choose one to go in and edit).

    I need to find a way to prevent the author terms from updating during a quick edit/batch edit post and for the life of me can’t figure out how it is done.

    Maybe someone here can help shed some light on what I’m missing. The source code is here: http://plugins.trac.wordpress.org/browser/co-authors-plus/trunk/co-authors-plus.php

    Any ideas?

    http://wordpress.org/extend/plugins/co-authors-plus/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Daniel Bachhuber

    @danielbachhuber

    Just started looking into this… neat trick! Want to prepare a patch for this ticket and we’ll include drag and drop ordering in the next release?

    I’ve only confirmed the author terms being changed in Bulk Edit, not Quick Edit. Is this the case for you too?

    Yup that’s the case for me to. Bulk Edit wipes out the custom order of the authors.

    I’ll submit a patch once I learn how to do that 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Co-Authors Plus] Making authors sortable’ is closed to new replies.
Skip to toolbar