Home › Forums › Back End › Ordered lists with PHP? (WordPress) › Re: Ordered lists with PHP? (WordPress)
August 18, 2012 at 6:06 pm
#108145
chrisburton
Participant
Solution:
if( function_exists( 'attachments_get_attachments' ) )
{
$attachments = attachments_get_attachments();
$total_attachments = count( $attachments );
if( $total_attachments ) : ?>