WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
[resolved] Making authors sortable (3 posts)

  1. Russell Heimlich
    Member
    Posted 2 years ago #

    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/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    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?

  3. Russell Heimlich
    Member
    Posted 2 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic