post_class


post_class ( $css_class = '', $post = null )

Parameters:
  • (string|string[]) css_class Optional. One or more classes to add to the class list. Default empty.
  • (int|WP_Post) post Optional. Post ID or post object. Defaults to the global `$post`.
Defined at:

Description

Displays the classes for the post container element.

Related Functions

get_post_class, postbox_classes, sticky_class, body_class, comment_class

Top Google Results

User discussions

wpseek mobile