get_post_gallery


get_post_gallery ( $post = 0, $html = true )

Parameters:
  • (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
  • (bool) html Optional. Whether to return HTML or data. Default is true.
Returns:
  • (string|array) Gallery data and srcs parsed from the expanded shortcode.
Defined at:

Description

Checks a specified post's content for gallery and, if present, return the first

Related Functions

get_post_galleries, get_post_gallery_images, get_post_galleries_images, get_post_ancestors, get_post_parent

Top Google Results

User discussions

wpseek mobile