I try to show top five category following code , but it's all the category. Any one can help me?
Add a Reply
Forum Groups
Design, Templates, & Tags
1773 6162
Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012
General
1429 5077
Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012
Open Source
84 291
Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011
Performance
173 737
Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012
Plugins & Plugin Development
190 567
Last Topic: Analytics Reporting by michael webster on Feb 5, 2012
Pricing and Licensing
26 95
Last Topic: How do ProNet Licensees Get Current Versions of Movable Type? by Bill on Aug 28, 2011
Sorry above i made the question was not understandable.
my question is i tried to show top five category(sorry code i not able to attach here),but it's showing all the category. Any one can help me?
any update on this?
The Categories tag doesn't seem to support any kind of ordering or filtering:
http://www.movabletype.org/documentation/appendices/tags/categories.html
You could, in theory, write your full list of cats with counts to a JSON array and use JavaScript to sort them and display the top 5, or even PHP.