WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] Count images in post (2 posts)

  1. Rank
    Member
    Posted 1 year 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

    http://wordpress.org/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 12 months 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

About this Topic