Support » Plugin: Custom Content Type Manager » Sortable custom columns in admin?

Viewing 1 replies (of 1 total)
  • Plugin Contributor fireproofsocks


    This was a bug — best to post that in the bug-tracker, otherwise I may never see it.

    I’ve committed the fix to the repo and it will available in the next version of the CCTM (although I’m having trouble with WP recognizing that a new version has been released — ?!?).

    If you want to make the fix now, edit the includes/CCTM.php file and look for the public static function order_posts() function (somewhere around line 1700). Change the following line:

    $orderBy = "{$wpdb->postmeta}.meta_key $order";

    To this:

    $orderBy = "{$wpdb->postmeta}.meta_value $order";

Viewing 1 replies (of 1 total)
  • The topic ‘Sortable custom columns in admin?’ is closed to new replies.