Notice: I no longer maintain this site regularly. While some content is still relevant, most of it will be migrated to my company site soon. To see what I'm up to go to focuslabllc.com.


Entry Category Count

Current Version: 1.0.0

0 comments   262 downloads

Added on February 8th by Erik Reagan

Occasionally I want to only display something based on the number of categories that is assigned to a particular entry. I wrote a small plugin to help me grab that number and use it in conditional statements. An example of use would be displaying a specific word like "category" versus "categories" in the sentence "This entry was filed in X category/categories." You could also choose to display content based on this number. A few examples of use are included in the documentation.

Currently it only returns the number of categories. If you have any additional suggestion for how this might be used or parameters you might get use from, let me know.

Comments

Looks like no one has left any words of wisdom yet...

Your Words of Wisdom

Remember me       Notify me of follow-up comments