get_post_format


get_post_format ( $post = null )

Parameters:
  • (int|object|null) $post Post ID or post object. Optional, default is the current post from the loop.
Returns:
  • (string|false) 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