WordPress.org

Forums

Simple Custom Post Order
Bug with wp 3.7 (1 post)

  1. GiedriusV
    Member
    Posted 1 year ago #

    After category editing no children are shown in list because "reorder_terms()" method treats $object array elements as objects, but they are only parent ID's.

    This should fix the bug:

    if(is_object($object)){
    if ( !isset( $object->term_id ) ){
    continue;
    }else{
    $term_id = $object->term_id;
    }
    }else{
    $term_id = $key;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Custom Post Order
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.