If it’s inside [loop] then the following should do it:
[for each=category count=1][each name][/for]
If it’s not in a loop then you can add current=true. For details, please see the documentation under Taxonomy -> For/Each.
The taxonomy terms (in this case categories) are ordered alphabetically by default. So, the above will display the first term of the list.
Beautiful! Thanks. I must’ve read that wrong originally. I was trying to use taxonomy=category in the for loop instead of each=category.
My fault it is still not working.
Does it work for custom categories?
Yes, it should work for any taxonomy.
[for each=taxonomy_name current=true count=1][each name][/for]
Are you sure you have the correct taxonomy name? You can check under Dashboard -> Content -> Taxonomy, to get the taxonomy slug.
Oops, I tested this and see that it’s not working correctly. I will make a plugin update soon, I’ll let you know when this is fixed.
OK, now it should be working. Could you confirm?
Now it works! Thanks so much for the help. I love this plugin.