WordPress display subcategories along with their titles and posts
All I wanted to do was display all the SUBCATEGORIES under a category (along with their titles) – and list the posts under each subcategory. With the power of wordpress plugins, I figured this would be trivial. It led me down a harrowing road with far too many plug-in options – none of which did exactly what I wanted.
I was fortunate to find this jquery based plug-in which accomplished what I was really after. It lets you expand/collapse the subcategories with any of three standard jquery effects. It will automatically hide subcategories without any posts. Also, you can use images instead of the default bullets by modifying the underlying css.
[jQuery Categories List showcount=1 orderby=count order=desc ex_sym=+ con_sym=- fx_in=fadeIn exclude=22,32]
Also, read through these FIVE must have wordpress shortcodes – these are implemented via functions.php in your template files (accessed through the Appearance—> Editor).
Leave a Reply