Support » Plugin: Contextual Related Posts » conflict with ads code into content

  • marcolo


    your plugin stop to work when insert in single.php file the next code to show ads banner into content

    could you suggest any workaround?

    		            <? /*php the_content(''); */?>
    						$paragraphAfter= 2;
    						$content = apply_filters(‘the_content’, get_the_content());
    						$content = explode('</p>', $content);
    						for ($i = 0; $i <count($content); $i++) {
    						if ($i == $paragraphAfter) { ?>
    						<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sidebar-adsarticolo')) : else : ?>
    						<?php endif; ?>
    						echo $content[$i] . '</p>';
Viewing 1 replies (of 1 total)
  • Plugin Author Ajay


    I’m confused with the code above – are you saying the posts no longer get inserted because you’re not using the_content anymore?

    You could try the manual install by inserting echo_crp() where you want the posts to the displayed

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.