conflict with ads code into content
-
Hi,
your plugin stop to work when insert in single.php file the next code to show ads banner into contentcould you suggest any workaround?
thanks
marco<? /*php the_content(''); */?> <?php $paragraphAfter= 2; $content = apply_filters(‘the_content’, get_the_content()); $content = explode('</p>', $content); for ($i = 0; $i <count($content); $i++) { if ($i == $paragraphAfter) { ?> <div> <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar-adsarticolo')) : else : ?> <?php endif; ?> </div> <?php } echo $content[$i] . '</p>'; } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘conflict with ads code into content’ is closed to new replies.