• Is there a way to output a gallery’s images separately from a post?

    For example, if I do the_content();, it will output the galleries and thumbnail versions of the images along with the content.

    I would like to create my own way to output gallery images because I want to add additional meta data when they get output.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You could call gallery_shortcode() directly if you know the shortcode attributes passed. There’s also get_post_galleries(), get_post_gallery() and get_post_galleries_images(). You should be able to work out something with these.

Viewing 1 replies (of 1 total)
  • The topic ‘Output gallery images separate from post’ is closed to new replies.