Support » Themes and Templates » Double content on same page when filter the_content!?

  • Hello fellow haxxors!

    I got a problem when coding my design. In my theme I’m adding a div with the following code:

    <?php $driftsida = get_page_by_path('Aa/Driftinformation') ?>
    <div><?php echo apply_filters('the_content', $driftsida->post_content); ?></div>

    But on some post types and plugin pages (“Liveblog”-plugin and “All-in-one-calendar” this far) the content is doubled up.

    First instance inside the above div and also on the correct place later on on the page.
    In ordinary posts, pages and front page it’s all okey.

    How do I get ONLY the page-content ($driftsida) and not the parent page content? Am I doing it wrong someway?

    Heeeeeeeeeeeeeeeeeeeeeeelp!!! 😛

  • The topic ‘Double content on same page when filter the_content!?’ is closed to new replies.