apply_filters content in wordpress 2.8
-
Well … I am having a slight problem (of course); I am trying to filter content and explode it – it works great in 2.7 Kubrik and yes it does not work in 2.8 Kubrik; the code in its basic looks like this:
`<?php $content = apply_filters(‘the_content’, $post->post_content );
$paragraphs = explode(‘<p>’, $content);
$i = 0;
foreach ($paragraphs as $number){
$i++;
$q = $i – 1;
if ($i == 0) {
echo $q.$number;
}
}?>`the content looks like this:
<p>First Paragraph</p><p>Second Paragraph</p>
If you do this it should not display anything – in 2.7 it behaves right; 2.8 shows content from the
$post->post_content
which makes me think that apply_filters does not do its work correctly; I tried looking it up, but nothing found in the documentation of wordpress 2.8; any help would be wonderful. Thanks upfront.
- The topic ‘apply_filters content in wordpress 2.8’ is closed to new replies.