Overall what I’m trying to do is list the number of attachments (1, 2, etc) for each post on a page. When you click on a number, it will change the image. Pretty much like a slideshow. How would I go about adding the numbers in my loop or could this be better solved via jQuery?
The reason I am not using OL’s is because it outputs a period after the number which I absolutely do not want.
Code (so far):
if( function_exists( 'attachments_get_attachments' ) )
{
$attachments = attachments_get_attachments();
$total_attachments = count( $attachments );
if( $total_attachments ) : ?>
Desired Output (view source HTML):
1
2
3