Add parent category class to post_class()

Right way to add class to post container HTML tag is post_class() function, it’s also required by Theme Review¬†Guidelines. Many people ask on WordPress – Stack Exchange how to echo class depending on parent category, best way to do this is to use post_class filter, so I wrote small chunk of code to this. Following […]