SHARE
TWEET

Untitled

a guest Jan 8th, 2012 44 Never
  1. <?php
  2. $posts_array = get_custom_field('my_relation:to_array', 'get_post');
  3. foreach ($posts_array as $p) {
  4.    printf('<a href="%s">%s</a>', $p['guid'], $p['post_title']); ?>
  5.    <div class ="avatar">
  6.         <img src="<?php print $p[prj_image]; ?>"
  7.    </div>
  8. <?php
  9. }
  10. ?>
RAW Paste Data
Top