• Resolved user10522three

    (@zorrohere)


    Hi,

    Is there any way to get around, stripping the excerpt

    the_content(null, true);

    and keep the html formatting of entire post?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    I’m not able to replicate this behavior. Any particular formatting? All HTML? Or just things like <strong>?

    Formatting should not be stripped. I suspect plugin or theme interference. Try deactivating all plugins and switching to one of the default twenty* themes. Temporarily alter the_content() call on single.php accordingly. You’ll observe formatting persists. Reactivate your setup one by one, checking output after each step. When formatting is stripped, the last activated module is at fault.

    Thread Starter user10522three

    (@zorrohere)

    I am using templates in WYSIWYG editor and it strips all the html except paragraph tags. From what I searched it’s not possible. So I worked around by separating excerpt into separate container. Though, if there is any solution I would like to know.

    PS: As I am typing this I think it was stupid of me to expect that opening tag will remain and rest of the excerpt will be removed.

    Moderator bcworkz

    (@bcworkz)

    So the tags that are stripped are ones opened in the excerpt and closed after the more tag? That would be logical because content is passed through a function that attempts to balance tags. It does so by removing “orphans”. Not knowing this is hardly “stupid”. An honest oversight is all it is ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Setting $stripteaser to true strips formatting as well’ is closed to new replies.