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

  • marcolo

    (@marcolo)


    Hi,
    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?
    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)
  • Plugin Author Ajay

    (@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.