Support General Prevent terms order being overwritten when updating post Reply To: Prevent terms order being overwritten when updating post

#9342
foundbutlostfoundbutlost
Participant

Currently I'm using wordpress default Tags taxonomy, it's nothing to do with metabox. here's the code:

function my_sort_tags() {
    global $wp_taxonomies;
    $wp_taxonomies['post_tag']->sort = true;
}
add_action( 'init', 'my_sort_tags' );

Then if i insert my terms on default wordpress taxonomy fields, it will remember the order when saving it to the database but not showing it in order when retrieve it from database to be showed on the editor screen so i have to manually re-order the terms if i ever want to update post.

idk Anh, but i think i'm gonna give on this for now and back to my old method, re-order the terms manually when post is updated. Thanks!