Post order
//POSTS
$args = array(
'numberposts' => -1,
'post_type' => 'activites',
'tax_query' => array(
array(
'taxonomy' => 'activites_categories',
'field' => 'slug',
'terms' => single_term_title("", false),
),
),
'meta_key' => 'activite_order',
'orderby' => 'meta_value_num',
'order' => 'ASC',
);
$query = new WP_Query( $args );
\\Terms -> Categories
$current_term_id = get_queried_object()->term_id;
$term_children = get_terms( "activites_categories",
array(
'child_of' => $current_term_id,
'hide_empty' => false,
'meta_key' => 'activite_order',
'orderby' => 'meta_value_num',
'order' => 'ASC',
)
);