1. <?php
  2.     $embedpostsPM = get_post_meta($post->ID, 'embed posts', true);
  3.     if ($embedpostsPM) {
  4.        
  5.         $embedpostsArr = explode("\n", $embedpostsPM);
  6.         foreach ($embedpostsArr as $embedpost) {
  7.             echo 'the post to embed:'.$embedpost.'!';
  8.            
  9.             $recent = new WP_Query("page_id=157");
  10.             while($recent->have_posts()):$recent->the_post();
  11.             ?>
  12.                
  13.                
  14.                 <article class="box articlebox" id="post-<?php the_ID(); ?>">
  15.                     <header>
  16.                         <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  17.                     </header>
  18.                     <section>
  19.                         <?php the_content('mehr'); ?>
  20.                     </section>
  21.                     <footer>
  22.                         <small>
  23.                             <?php the_time('F jS, Y'); ?> <br/>
  24.                             <?php the_category(' &gt; '); ?>
  25.                         </small>
  26.                     </footer>
  27.                 </article>
  28.  
  29.             <?php
  30.             endwhile;
  31.                
  32.         }
  33.     }
  34. ?>