This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 8th, 2012  |  syntax: None  |  size: 0.27 KB  |  views: 39  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data