Advertisement
Guest User

Untitled

a guest
Jan 9th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. <?php
  2. $my_posts = get_custom_field('select_relative_posts:to_array', 'get_post');
  3. // Loop starts here
  4. foreach ($my_posts as $p) {
  5. ?>
  6. <div class="module">
  7. <div class="thumbnail">
  8. <a href="<?php print $p['guid']; ?>" rel="bookmark" title="<?php print $p['post_title'] ?>">
  9. <img src="<?php print $p['thumbnail_src']; ?>" />
  10. </a>
  11. </div>
  12. <h3 class="blog_header"> "><?php print $p['post_title']; ?> </h3>
  13. <p><?php print $p['post_date']; ?></p>
  14. <div class="entry">
  15. <p><?php print $p['post_excerpt']; ?></p>
  16. </div>
  17. </div>
  18.  
  19. <?php
  20. } // <-- Loop ends here
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement