Forums

[resolved] How to remove html markups included into the_content() ? (3 posts)

  1. pingoochan
    Member
    Posted 3 years ago #

    Hi,

    When i try to display the_content() into a regular loop, it work just great. BUT, instead of having my clean html markup inside the page, wordpress put a real mess into it!

    Here's the unwished html markups :

    <div id="presentoir">
    <div id="awppost_51" class="awppost">
    <div id="awppost_1_51" class="awppage" style="">
    <p>MY REGULAR CONTENT</p>
    </div>
    </div>

    How can I deal with it?
    Thanks for your help!

  2. ashishbajaj
    Member
    Posted 3 years ago #

    use get_the_content();

    instead of the_content();

  3. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    The additional unwanted divs are within your theme's template file, so you could edit that file and remove them.

Topic Closed

This topic has been closed to new replies.

About this Topic