Tuesday, March 6, 2012

Embed a page into another page in Wordpress

Embed a page into another page in Wordpress

Just paste the following code within the loop and make sure that you update page ID on line 1!


<?php $recent = new WP_Query("page_id=**ID**"); while($recent->have_posts()) : $recent->the_post();?>
       <h3><?php the_title(); ?></h3>
       <?php the_content(); ?>
<?php endwhile; ?>

No comments:

Post a Comment

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off