How is the sort order of tags in the zblogphp sidebar module designed? [Picture]

Question: The sidebar label list is always displayed the same, and the newly added label cannot be displayed. What if the change makes the latest ID label appear on the top?
How is the sort order of tags in the zblogphp sidebar module designed?  [Picture]
Answer: It is sorted in reverse order according to the number of articles contained in your tags, with the largest number in the front, and up to 25 tags are displayed.
We all know that when writing zblog, we always like to set some tags to aggregate some articles with the same characteristics or themes. This is a good solution for article aggregation, so there is also zblog tags tags And I found that many developers on the zblog development platform have also designed plug-ins to personalize and transform the aggregation of tags to make tag aggregation easier to use. At the same time, we also found an annoyance: the tag aggregation seems to be sorted according to the number of articles. In other words, if you set a tag and the number of articles under this tag is the most, then it will be ranked first. display. Then the label with the second largest number of articles is displayed, and so on.

这个排序方案就会导致那些标签下文章聚合数量少的TAG不能显示出来,会比较烦恼,也就是造成了标签显示不全的问题。当然大多数情况下,复活读后感(https://www.yuananren.com/duhougan/9545.html)标签的数量会非常多,也就导致必须做出选择,将一些重要的标签显示出来,但对于写博客的人群来说,标签数量一般不会很多,需要将其展示出来,那么就需要对标签的排序和显示数量进行修改了。

There is another question, that is, some bloggers like to sort the tags by ID sequence. What does it mean? It is to sort the IDs of the security tags, ranking the first with the smallest ID number in TAGS, the second with the ID of 2, and so on, so that it looks more neat and does not make the tag sorting so messy, which is conducive to writing applications. Also very good. Also need to modify the sorting rules, of course, you must modify the code, because ZBLOG does not have this function.
In short, this problem can be solved by plug-in at present, friends who need to solve can go to the relevant TAGS plug-in, and then set it.

Guess you like

Origin blog.51cto.com/14938467/2551143