I got this code (source)
// split content at the more tag and return an array
function split_content() {
global $more;
$more = true;
$content = preg_split('/<span id="more-\d+"><\/span>/i', get_the_content('more'));
for($c = 0, $csize = count($content); $c < $csize; $c++) {
$content[$c] = apply_filters('the_content', $content[$c]);
}
return $content;
}
// original content display
// the_content('<p>Read the rest of this page »</p>');
// split content into array
$content = split_content();
// output first content section in column1
echo '<div id="column1">', array_shift($content), '</div>';
// output remaining content sections in column2
echo '<div id="column2">', implode($content), '</div>';
This only gets two columns - how can I get a third div column?
Cheers!
the_content
in WordPress, you've eliminated anything WordPress specific in the question. Suggestion: if the content in question uses the<!--nextpage-->
tag to split columns, then this question can be made WordPress-specific.