Numbered attachments in gallery
-
hi
i run pure photoBlog, i just upload photos to the post and put this
[gallery columns="1" size="full"]
now i`m trying to numbered all attachments in gallery 1,2,3,4… etc
i found this
<?php
$attachments = get_children(array(‘post_parent’=>$post->ID));
$nbImg = count($attachments);
echo ‘There are ‘.$nbImg.’ pictures on this post.’;
?>so now i know how many photos i have in post but how to force it to count it from first to last and put the numbers next to pictures ;]
anyone tried it? maybe there is already done plugin for this?
please help
- The topic ‘Numbered attachments in gallery’ is closed to new replies.