<?php
$music = new Pod('music');
$music->findRecords('ID ASC');
$total_music = $music->getTotalRows();
?>
<?php if( $total_music>0 ) : ?>
<ul class="music-home">
<?php while ( $music->fetchRecord() ) : ?>
<?php
// set our variables
$music_name = $music->get_field('name');
$music_slug = $music->get_field('slug');
$music_id = $music->get_field('ID');
$iImageID = $music->get_field('profilepic.ID');
//last parameter can be thumbnail, medium, large or full
$arImage = wp_get_attachment_image_src($iImageID,'thumbnail');
$strImageSrc = $arImage[0];
$iImageWidth = $arImage[1];
$iImageHeight = $arImage[2];
?>
<li>
<a href="<?php echo get_permalink(); ?><?php echo $music_slug; ?>/">
<img src="<?php echo $strImageSrc; ?>"/>
<span style="display:block"><?php echo $music_name; ?></span>
</a>
</li>
<?php endwhile ?>
</ul>
<?php endif ?>