Categories
WordPress WordPress PHP Code

WordPress post_class add

Extra Class add with post_class by the different way:

post_class( string|array $class = ”, int|WP_Post $post_id = null )

#

#

 

# Multiple Class add with post Class:

 

# Multiple Class add Easy way with post Class:

 

# specify for post ID