taxonomy terms, inverted

yes it’s because you sort them by name and in order ASCending. because ‘orderby’ => ‘name’, ‘order’ => ‘ASC’ is the default setting. try: $term_names = wp_get_post_terms($post->ID, ‘marcamodelo’, array(‘fields’ => ‘names’, ‘orderby’ => ‘name’, ‘order’ => ‘DESC’, )); and it should be the other way around. here you have documentation of which parameters are possible … Read more

Get Term ID by Description

I’m not aware of ready-made functions that support this, but you can easily construct a WP_Term_Query to do this. The following code is untested but should work: $args = [ ‘description__like’ => ‘the description you\’re searching for’, ‘taxonomy’ => ‘category’,//or other taxonomy ‘fields’ => ‘ids’, ‘hide_empty’ => false, ]; $term_query = new WP_Term_Query($args); foreach ($term_query->terms … Read more

show recently added tags to tag cloud

I don’t believe you can do this with the default tag cloud. The only options for ordering are “name” and “count”. You would need to add a new term to order by and probably use date. See this post’s answer for more details.