Support » Themes and Templates » Losing Post Formatting When Including Posts in HTML Webpage

  • Theme: twentyeleven


    I use some code which I got from these support pages to insert WP posts into my existing site template.

    However, whilst this works and I can see the posts on my website, some formatting is lost (in particular, wordwrapping around images).

    The code I used is:


    <?php if ( have_posts() ) : ?>

    <?php twentyeleven_content_nav( ‘nav-above’ ); ?>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php get_template_part( ‘content’, get_post_format() ); ?>

    <?php endwhile; ?>

    <?php twentyeleven_content_nav( ‘nav-below’ ); ?>

    I’m new to WP, so please be gentle!

    The URL of the WP page is

    The URL of the posts on my website is

    As you can see, the formatting on the WP page is fine, but the website loses the formatting of the text around the image.

    Any idea what I’m missing on my HTML page to retrieve formatting info from the WP page?

    Thanks in advance.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Losing Post Formatting When Including Posts in HTML Webpage’ is closed to new replies.