Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $my_posts = get_custom_field('select_relative_posts:to_array', 'get_post');
- // Loop starts here
- foreach ($my_posts as $p) {
- ?>
- <div class="module">
- <div class="thumbnail">
- <a href="<?php print $p['guid']; ?>" rel="bookmark" title="<?php print $p['post_title'] ?>">
- <img src="<?php print $p['thumbnail_src']; ?>" />
- </a>
- </div>
- <h3 class="blog_header"> "><?php print $p['post_title']; ?> </h3>
- <p><?php print $p['post_date']; ?></p>
- <div class="entry">
- <p><?php print $p['post_excerpt']; ?></p>
- </div>
- </div>
- <?php
- } // <-- Loop ends here
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement