Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Found it

    <?php
    $page_columns = explode ("[--column--]", $post->post_content);
    print apply_filters('the_content', $page_columns[0]);
    print '<div class="column first">';
    print apply_filters('the_content', $page_columns[1]);
    print '</div>';
    print'<div class="column second">';
    print apply_filters('the_content', $page_columns[2]);
    print '</div>';
    ?>

    Worked for me.

    Sorry for the bump!

    I’m using the post_content for my pages because I’m working with columns:

    <?php
    $page_columns = explode ("[--column--]", $post->post_content);
    print $page_columns[0];
    print '<div class="column first">';
    print $page_columns[1];
    print '</div>';
    print'<div class="column second">';
    print $page_columns[2];
    print '</div>';
    ?>

    But… when I’m using this, there will be no paragraph tags.
    How do I use the pasted code above in combination with the <?php echo apply_filters('the_content', $post->post_content); ?>?

    (sorry for my bad English)

Viewing 2 replies - 1 through 2 (of 2 total)