Trying to figure out how to display a top list of categories. For example, I have a site with 50 total categories. I want to list out only the “Top 5” categories, meaning the categories that have the most entries that belong to them. Anyone know how I would go about doing this?
Could this plugin do somegthing like this?
Thanks in advance for any help.
Hi notoryious,
This plugin can be used (together with some EE tag or plugin) to display number of entries for each category, but how to display only “Top 5” categories, I do not know.
It seems that it would be a good feature request to add to Weblog Category Archive Tag the parameter “orderby_categories” which would accept the value “entries_number”.
Currently it seems that to achieve what you need a new plugin should be written.
Hi,
I released version 1.7.1 of Entries Number plugin.
In this release a bug was fixed. Because of that bug entries were counted incorrectly in situations when “category” parameter contained two or more “&” operators.
Everyone who use “&” operators in “category” parameter is recommended to upgrade.
Hi Ryan,
It is not allowed to nest tags of the same plugin. Entries Number2 plugin is created to go around this restriction. Having installed both Entries Number and Entries Number2 plugins it is possible to write such code as this:
{exp:entries_number category="6" weblog="not weblog1|weblog4" site="1"}
{if entries_number==0}
Some code
{exp:entries_number2 category="9" weblog="weblog5|weblog8" site="1"}
{if entries_number2>0}
Some code
{/if}
{/exp:entries_number2}
Some code
{/if}
{/exp:entries_number}
If there is no need to nest exp:entries_number tags, then just use single file of Entries Number plugin.
Since updating to 1.6.8 build 20091201, I’ve been having issues that may point to a wider parsing issue with curly braces (detailed in this thread). These problems were also found when using the {count} variable within a {exp:weblog:entries} nested inside a {exp:entries_number}. The {count} variable was being ignored in a conditional. The “fixes” promulgated in the other thread did not make things work when inside an {exp:entries_number} call.
very nice plugin, it works fine but I still miss what as already been suggested, that is to add a filter via a custom_field content. So that we can have counted the number of entries which have a specific value in a specific field, for a specific category, as it is stated in this post:
Hi again Laisvunas, Your plugin is working perfectly! I was wondering though… Would you be able to add this parameter to your plugin (search:field_name=)? ie:Thanks, Ryansearch:field="fieldvalue"
thank you for any possible change… mogra
Hi, What’s the point of having a filter via a custom_field content? Why not submit the entry to certain category?
We have an events calendar that uses custom fields for the event sponsor’s name as well as location. So allowing people to sort by those fields is very helpful. Same with a zipcode/postal code field. Categories wouldn’t be appropriate.
Can anyone confirm that this plugin should go into “system > expressionengine > plugins” directory? If so, what might be a reason for it not appearing in the plugins admin panel? Thanks!
What version of EE are you using?
In 1.6.x you would put it in the system / plugins directory.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.