martes, 8 de octubre de 2013

<?php $paragraphAfter= 2; //shows the ad after paragraph 1A $content = apply_filters('the_content', get_the_content()); $content = explode("</p>", $content); for ($i = 0; $i <count($content); $i++) { if ($i == $paragraphAfter) { ?> TU ADSENSE <?php } echo $content[$i] . "</p>";

No hay comentarios: