Sorting Category and Taxonomy Terms by Latest Post in WordPress
Recently I needed to implement a way to return custom taxonomy terms sorted by their latest posts. For example, imagine we have a movie review site, and we use the default category taxonomy as “Movie Categories”. Maybe they will have the following taxonomy terms: Getting taxonomy terms with get_terms() We can easily get the category […]