Is there somebody who managed to count the number of attachment files (images) in a post ? Is there a function in WordPress which allow to display it (something like “wp_get_attachment_number();”) ?
I would like to display this variable in the file “single.php”…
How could you use that code to display on the attachement page and show ho many attachments are attached to the parent? What I’m trying to accomplish is to display “Image #3 of 5” when viewing the single attachment through the image.php template.
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Post attachment count?’ is closed to new replies.