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

Display the classes for the post div.


25 related functions found for: post_class

Top ↑

Related terms found for this post

TaxonomyTerms
wp-parser-related-wordsclass, post, post-template-php, post-typ, post-type, wp-includes
wp-parser-packageTemplate, WordPress
wp-parser-source-filewp-includes/post-template.php

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • class
  • post
  • post-template-php
  • post-typ
  • post-type
  • Template
  • wp-includes
  • wp-includes/post-template.php
  • template

Top ↑

Description Description


Top ↑

Parameters Parameters

$class

(string|array) (Optional) One or more classes to add to the class list.

Default value: ''

$post_id

(int|WP_Post) (Optional) Post ID or post object. Defaults to the global $post.

Default value: null


Top ↑

Source Source

File: wp-includes/post-template.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.