WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get post galleries

Description

Retrieves galleries from the contents of a post.

Parameters

$post
(mixed) (requiredl) Post ID or Post object.
Default: None
$html
(boolean) (optional) Whether to return HTML or data in the array.
Default: true

Return

(array) 
A list of arrays, each containing gallery data and srcs parsed from the expanded shortcode.

Usage

 <?php $galleries get_post_galleries$post ); ?> 

Change Log

Source File

get_post_galleries() is located in wp-includes/media.php.

Related

get_post_galleries_images(), get_post_gallery(), get_post_gallery_images()

This article is marked as in need of editing. You can help Codex by editing it.