post_class


post_class ( $class = '', $post_id = null )

Parameters:
  • (string|array) $class One or more classes to add to the class list.
  • (int|WP_Post) $post_id 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, comment_class, body_class

Top Google Results

User discussions

wpseek mobile