• Resolved boywondr16

    (@boywondr16)


    When trying to use the built-in placements, the output delivers doubles. For example, on the page linked above, you’ll see two of the same banner…

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi boywondr16,

    thanks for reaching out.

    Interesting case. Is that a popular theme or one you built or extended yourself? My best guess is that it uses the the_content filter twice.

    Thanks,
    Thomas

    Plugin Author Thomas Maier

    (@webzunft)

    Hi boywondr16,

    have you been able to look at the issue again or found another solution?

    Thanks,
    Thomas

    Thread Starter boywondr16

    (@boywondr16)

    Sorry for not getting back on this, but work took over my priority list for the past few weeks…

    I haven’t found an answer. Here’s what I’m wondering, though…The theme doesn’t include the the_content filter twice, that I can tell, but it does make calls on content templates from the single.php.

    Here’s what single looks like:

    <?php get_header(); ?>
    
    	<div id="primary" class="content-area column">
    		<div class="content-loop" role="main" <?php hybrid_attr( 'content' ); ?>>
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    			<?php get_template_part( 'breadcrumbs' ); ?>
    			
    			<?php get_template_part( 'content', 'single' ); ?>
    
    			<?php supernews_related_posts(); ?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</div><!-- #main -->
    	</div><!-- #primary -->
    
    <?php get_sidebar( 'secondary' ); ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Plugin Author Thomas Maier

    (@webzunft)

    Thanks for sending more details regarding your issue.

    The code doesn’t load the main content twice, but just another template that does load it once, probably.

    supernews_related_posts() might be part of the problem, since many related posts solutions also use the_content and would trigger showing the ads. Do you know how to comment that line out for testing?

    Thanks,
    Thomas

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicates of Ads’ is closed to new replies.