WordPress.org

Forums

Get the number of images in a post gallery (1 post)

  1. tom7289
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic