Insert Block Inbetween Paragraphs of the Content Body Field I have a block I am trying to insert into the body field, catch is I want it to appear after the first two paragraphs. I tried using something similar to this in my node.tpl.php:

&lt;?php
$array = explode ("&lt;/p&gt;", $content['body']);
$array[2] = $myBlock . $array[2];
$content['body'] = implode("&lt;/p&gt;", $array);
?&gt;

//Important: This code snippet needs to be inserted before

&lt;?php
print $content['body'];
?&gt;


This code does insert my block in the body field, but also overwrites all the content in the field.

I'm using Drupal 7.10, any help is appreciated.
I think you want to be doing this on $body[0]['value']; And then in your output put echo render($content['body']); see the answer to this post on rendering fields.