Tag Archives: post_class


Display the classes for the post div.


Continue reading


Retrieve the classes for the post div as an array.The class names are add are many. If the post is a sticky, then the ‘sticky’ class name. The class ‘hentry’ is always added to each post. For each category, the class will be added with ‘category-‘ with category slug is added. The tags are the same way as the categories with ‘tag-‘ before the tag slug. All classes are passed through the filter, ‘post_class’ with the list of classes, followed by $class parameter value, with the post ID as the last parameter.


Continue reading