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|false) The format if successful. False otherwise.
Defined at: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
Description
Retrieve the format slug for a post