Closed vol4ikman closed 11 years ago
echo $attachments->src( 'full' ); // full size
echo $attachments->src( 'medium' ); // medium size
echo $attachments->src( 'small' ); // small size
it is not work for me <?php $attachments = new Attachments( 'my_attachments' ); ?> <?php if( $attachments->exist() ) : ?> <?php while( $attachments->get() ) : ?>
<?php endwhile; ?>
<?php endif; ?>
I need display attachment url 2 times, 1- in image source and 2- in image alt
The src()
method retrieves the URL to the image of the size passed to it, it won't provide the alt text.
How can I change the "echo $attachments->src( 'full' )" image size or add new parameter, like "medium" and "small".
Does it possible? Thank U!