How to add class in post_class() function.

Usage

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>


HTML output

<div id="post-4564" class="post post-4564 category-48 category-dancing logged-in">