lib/Post.php
public function gallery( $html = true ) {
		if ( isset($this->custom['gallery']) ) {
			return $this->custom['gallery'];
		}
		$galleries = get_post_galleries($this->ID, $html);
		$gallery = reset($galleries);

		return apply_filters('get_post_gallery', $gallery, $this->ID, $galleries);
	}
public function gallery( $html = true ) {
		if ( isset($this->custom['gallery']) ) {
			return $this->custom['gallery'];
		}
		$galleries = get_post_galleries($this->ID, $html);
		$gallery = reset($galleries);

		return apply_filters('get_post_gallery', $gallery, $this->ID, $galleries);
	}
public function gallery ( $ html = true ) { if ( isset ( $ this -> custom [ 'gallery' ] ) ) { return $ this -> custom [ 'gallery' ] ; } $ galleries = get_post_galleries ( $ this -> ID , $ html ) ; $ gallery = reset ( $ galleries ) ; return apply_filters ( 'get_post_gallery' , $ gallery , $ this -> ID , $ galleries ) ; }
Returns the gallery
@api
@example
```twig
{{ post.gallery }}
```
@return html
Returns the gallery