[resolved] Count images in post (2 posts)

  1. Rank
    Posted 2 years ago #

    Hi guys!

    I want to do a count of the images in the post, I also want to do a "fancybox" with the number of each, eg:

    Total images in posting = 30

    fancybox / /
    image 1 = image 1 of 30
    image 2 = image 2 of 30
    image 3 = image 3 of 30
    etc etc..

    Is this possible?
    Thank you for your attention.
    Even more hugs


  2. Jonathan Christopher
    Plugin Author

    Posted 2 years ago #

    Yes this is possible, please see the documentation on Attachment Attributes (line 4 of the first example in that section) to get the total, and then you just need to keep track of the count as you loop through your Attachments.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Attachments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic