Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $embedpostsPM = get_post_meta($post->ID, 'embed posts', true);
- if ($embedpostsPM) {
- $embedpostsArr = explode("\n", $embedpostsPM);
- foreach ($embedpostsArr as $embedpost) {
- echo 'the post to embed:'.$embedpost.'!';
- $recent = new WP_Query("page_id=157");
- while($recent->have_posts()):$recent->the_post();
- ?>
- <article class="box articlebox" id="post-<?php the_ID(); ?>">
- <header>
- <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
- </header>
- <section>
- <?php the_content('mehr'); ?>
- </section>
- <footer>
- <small>
- <?php the_time('F jS, Y'); ?> <br/>
- <?php the_category(' > '); ?>
- </small>
- </footer>
- </article>
- <?php
- endwhile;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement