Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   How do I get wordpress posts embedded into an html site? (https://www.warriorforum.com/programming/375708-how-do-i-get-wordpress-posts-embedded-into-html-site.html)

ErnieB 5th May 2011 01:53 AM

How do I get wordpress posts embedded into an html site?
 
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?

ussher 5th May 2011 02:21 AM

Re: How do I get wordpress posts embedded into an html site?
 
Try:
<?php the_content(); ?>


WordPress Tip: Show the Latest Post in Full, Then Summaries of the Other Posts | I'd Rather Be Writing

ErnieB 5th May 2011 02:58 AM

Re: How do I get wordpress posts embedded into an html site?
 
Awesome, Worked like a charm. I knew it had to be something simple. Thanks Alot


All times are GMT -6. The time now is 05:34 PM.