Forum Replies Created

Viewing 1 replies (of 1 total)
  • it does reorder, but when it does the insert it is only entering a value in column position2. It appears the order in the admin and the display on single uses the value from column position1.

    So, if you are only doing manual ordering without reciprocal links you can change the insert sql a bit.

    look around line 353 for this line:
    $query = "INSERT INTO ".$wpdb->prefix."post_relationships VALUES( $post_id, $related_post , 0, $new_count )";

    change it to:
    ‘$query = “INSERT INTO “.$wpdb->prefix.”post_relationships VALUES( $post_id, $related_post , $new_count, $new_count )”;’

    instead of inserting a 0 for the position1 column you are inserting the order value.

    This solved my problem, but I’m sure it doesn’t really solve it well for the reciprocal links.

Viewing 1 replies (of 1 total)