• Resolved konstantinus

    (@konstantinus)


    I display a list on the site with links to the galleries.
    I want to display the number of images in the gallery in front of the gallery name. Can I call the number of Images by knowing the Page ID of the gallery?

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Imagely

    (@imagely)

    Hi @konstantinus,

    That’s not something available within the available display types but you can create your custom view ( display type ) and print both the gallery name:

    <?php foreach ($displayed_gallery->get_galleries() as $gallery): ?>
      <?php esc_html($gallery->title) ?>
    <?php endforeach ?>

    And the images amount using count($images) within the main loop.

    • This reply was modified 1 year, 6 months ago by Imagely.
Viewing 1 replies (of 1 total)
  • The topic ‘Output the number of images in the gallery’ is closed to new replies.