WordPress.org

Forums

[resolved] formatting is lost when post is published (2 posts)

  1. bocarter
    Member
    Posted 4 years ago #

    Here is the html in the post editor for a test post at rapbankmarketing.com.

    <h2>Heading 2</h2>
    Paragraph 2
    <h3>Heading 3</h3>
    Paragraph 3
    <h4>Heading 4</h4>
    Paragraph 4

    When I hit the preview button, it displays a formatted page, (here is the html from the page source:

    </div>
    <div class="format_text entry-content">
    <h2>This is Heading 2</h2>
    <p>This is paragraph 2</p>
    <h3>This is Heading 3</h3>
    <p>This is paragraph 3</p>
    <h4>This is Heading 4</h4>
    <p>This is paragraph 4</p>
    </div>

    BUT - when I go to the website, I get this unformatted entry:

    This is Heading 2 This is Paragraph 2 This is Heading 3 This is Paragraph 3 This is Heading 4 This is Paragraph 4

    Here is the html for the post content, from the page source:

    <div class="format_text entry-content">
    <p>This is Heading 2 This is paragraph 2 This is Heading 3 This is paragraph 3 This is Heading 4 This is paragraph 4</p>
    </div>

    Any suggestions? thanks. Boyd

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    Does your theme's index.php use the_excerpt? If so, that strips formatting as well as displaying a summary

Topic Closed

This topic has been closed to new replies.

About this Topic