Reorder by Term – Not displaying correct Term Orber in Backend
-
This plugin is fantastic (combing Reorder by Term / Reorder Posts / Reorder Terms is really good)
However, I am running into an issue on WP Version 4.9.8 with Reorder by Term Version 1.2.2 .
— Steps to reproduce.
I have created a custom taxonomy called ‘Genre’.
I generate Post Term Data.
I go to CPT > Reorder > Reorder by Term > Select Genre > Select Term > Drag items to order I want.
This works perfectly. Front-end is updated. I am using a pre_get_posts hook and the following to order the archive page.
if(is_tax( ‘genre’ ) && !is_admin()) {
$post_type = get_queried_object();
$slug = $post_type->slug;
$key = ‘_reorder_term_genre_’.$slug;
// order stuff
$query->set( ‘posts_per_page’, 99 );
$query->set( ‘post_type’, ‘work’ );
$query->set( ‘order’, ‘ASC’ );
$query->set( ‘post_status’, ‘publish’ );
$query->set( ‘orderby’, ‘meta_value_num title’ );
$query->set( ‘meta_key’, $key );
}However, reloading the ‘CPT > Reorder > Reorder by Term > Select Genre’ page returns the orginal order. There are no other hooks affecting the order for the backend of the site?
- The topic ‘Reorder by Term – Not displaying correct Term Orber in Backend’ is closed to new replies.