How do I get wordpress posts embedded into an html site?

by 2 replies
3
I am wanting to pull the posts from a wordpress blog and have them display inside of an html site. I researched and found the following code which works ( in conjunction with another snippet of code )

Code:
<?php while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
<?php endwhile; ?>
However, I want to display the ENTIRE post including any images that are within that post. What needs changed/added to make this happen?
#programming #embedded #html #posts #site #wordpress

Next Topics on Trending Feed

  • 3

    I am wanting to pull the posts from a wordpress blog and have them display inside of an html site. I researched and found the following code which works ( in conjunction with another snippet of code ) Code: <?php while (have_posts()): the_post(); ?> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> <p><a href="<?php the_permalink(); ?>">Read more...</a></p> <?php endwhile; ?> However, I want to display the ENTIRE post including any images that are within that post. What needs changed/added to make this happen?