jaread83
8 years agoChampion
REST api for most used blog labels
I am looking at creating a custom component using blog labels and having them filter the blog articles down to the most popular categories. What I need is to list out the top 5 most used labels and ...
- 8 years ago
Hi jaread83
In order to obtain the most popular labels the API v2 labels would need to support both GROUP BY and SORT, which unfortunately they don't yet.
But there is some good news: You might actually not need to create a custom component. Take a look at the Lithium Studio documentation of the updated responsive labels widget labels.widget.labels-list as it allows for sorting and limiting the output to 5 labels as well: