$timeline_taxonomies = get_terms(array( 'fields' => 'ids', //get the IDs 'taxonomy' => 'taxonomy_name', 'orderby' => 'term_order', 'hide_empty' => true, ));