<?php
$content = apply_filters(‘the_content’, get_the_content());
$content = explode(“</p>”, $content);
$total_p = count($content);
$last = $total_p – 1; //shows html at last paragraph.
for ($i = 0; $i <count($content); $i++) {
if ($i == $last ) { ?>
<div>INSERT HTML STUFF HERE</div>
<?php
}
echo $content[$i] . “</p>”;
} ?>
Yes! Get it done as above. Thanks.
Thanks dude! It works pretty well.