WordPress.org

Support

Support » Themes and Templates » Get the number of images in a post gallery

Get the number of images in a post gallery

  • I’m trying to display the number of images in the image gallery of a post without actually inserting the gallery into the post. I’m making a custom template for a theme that I want this to display on. Everything I’ve tried either spits out random numbers or shows a zero and I’ve spent hours searching online for a solution with no luck.

    Does anyone know how I can do this?

    Thank you

  • The topic ‘Get the number of images in a post gallery’ is closed to new replies.