function va_get_attachment_link( $att_id, $size = 'thumbnail' ) { return html( 'a', array( 'href' => wp_get_attachment_url( $att_id ), 'rel' => 'colorbox', 'title' => trim( strip_tags( get_post_meta( $att_id, '_wp_attachment_image_alt', true ) ) ) ), wp_get_attachment_image( $att_id, $size ) ); }
$image_attributes = wp_get_attachment_image_src( $att_id ); if( $image_attributes ) { ?> <img src="<?php echo $image_attributes[0]; ?>" width="<?php echo $image_attributes[1]; ?>" height="<?php echo $image_attributes[2];?>" alt="<?php echo $category;?>"> <?php } ?>
There are currently 1 users browsing this thread. (0 members and 1 guests)