- <?php
- $posts_array = get_custom_field('my_relation:to_array', 'get_post');
- foreach ($posts_array as $p) {
- printf('<a href="%s">%s</a>', $p['guid'], $p['post_title']); ?>
- <div class ="avatar">
- <img src="<?php print $p[prj_image]; ?>"
- </div>
- <?php
- }
- ?>