get_post_format


get_post_format ( $post = null )

Parameters:
  • (int|WP_Post|null) post Optional. Post ID or post object. Defaults to the current post in the loop.
Returns:
  • (string|bool) The format if successful. False otherwise.
Defined at:

Description

Retrieve the format slug for a post

Related Functions

set_post_format, get_post_format_link, get_post_format_slugs, get_post_format_string, has_post_format

Top Google Results

User discussions

wpseek mobile