Title: [Plugin: Advertising Manager] Space between posts added&#8230;
Last modified: August 19, 2016

---

# [Plugin: Advertising Manager] Space between posts added…

 *  [utnalove](https://wordpress.org/support/users/utnalove/)
 * (@utnalove)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-space-between-posts-added-1/)
 * I had AdSense Manager 3.3.3, I upgraded to Advertising Manager 3.4.7, and then
   deactivated the Adsense Manager. I started having this issue, so I decided to
   delete the Advertising Manager Adsense imported from the previous version and
   I added the same fresh google ads code.
 * Well, it’s the same. Before Upgrading to Advertising Manager between the first
   3 posts in the Home, there were the banners and between the next posts a very
   little space was present, as per template, normal space.
 * Now with this plugin I have a BIG space between the 3&4 and 4&5 post. It’s like
   a banner to be present also there, but they are not present.
 * Please look at the page [here](http://www.security-exchange.net/news).
 * Here you can see the ENTRY in the index.html of the template.
 *     ```
       <div id="entry">
   
       <!--added by me-->
   
       <!--added by me-->
   
               <div class="recent">
               <?php $my_query = new WP_Query('showposts=1');
               while ($my_query->have_posts()) : $my_query->the_post();
               $do_not_duplicate = $post->ID; ?>
   
               <div class="post new" id="post-<?php the_ID(); ?>">
   
                   <div class="info">
                           <div class="latest">
                           <h3 class="title">Latest Entry</h3>
                           <div class="date">Posted on <?php the_time('M d Y'); ?></div>
                           </div><!--latest-->
                           <div class="comcount">
                           <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?>
                           </div><!--comcount-->
                           <br clear="all" />
                   </div><!--info-->
   
              		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>       
   
               	<div class="content"><?php the_content_rss('', TRUE, '', 90); ?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="readmore">Read More</a></div>
   
                   <div class="meta">
                           <div class="tags"><?php the_tags('', ', ', '<br />'); ?></div>
                           <div class="cats"><?php the_category(', ') ?></div>
                   </div><!--meta-->
   
               </div><!--post-->
               <?php endwhile; ?>
               </div><!--recent-->
               <div class="recentbottom"><!-- --></div>
   
       		<?php if (have_posts()) : while (have_posts()) : the_post();
   
               if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
   
       <!--added by me-->
       <div align="center" >
       <?php adsensem_ad(); ?>
       </div>
       <br />
       <!--added by me-->
   
               <div class="post recent" id="post-<?php the_ID(); ?>">
   
                	<div class="info2">
                           <div class="latest">
                           <div class="date">Posted on <?php the_time('M d Y'); ?></div>
                           </div><!--latest-->
                           <div class="comcount">
                           <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?>
                           </div><!--comcount-->
                           <br clear="all" />
                   </div><!--info-->
   
               <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>       
   
               <div class="content"><?php the_content_rss('', TRUE, '', 40); ?><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>" class="readmore">Read More</a></div>
   
               <div class="meta">
               <div class="tags"><?php the_tags('', ', ', '<br />'); ?></div>
               <div class="cats"><?php the_category(', ') ?></div>
               </div><!--meta-->
               </div><!--post-->
               <div class="recentbottom"><!-- --></div>
       		<?php endwhile; ?>
   
               <div class="alignleft"><?php next_posts_link('Older Entries') ?></div>
               <div class="alignright"><?php previous_posts_link('Newer Entries') ?></div>
               <br clear="all" />
   
       		<?php else : ?>
       		<?php endif; ?>
   
       </div><!--entry-->
       ```
   
 * If you want, there is a little screenshot [here](http://www.security-exchange.net/images/uploaded/am.JPG).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [utnalove](https://wordpress.org/support/users/utnalove/)
 * (@utnalove)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-space-between-posts-added-1/#post-1113784)
 * As you can see from that code I had:
 *     ```
       <div align="center" >
       <?php adsensem_ad(); ?>
       </div>
       <br />
       ```
   
 * Now I have changed it to:
 *     ```
       <div align="center" >
       <?php advman_ad('Google Adsense'); ?></div>
       <br />
       ```
   
 * But it doesn’t resolve the problem…
 *  [switzer](https://wordpress.org/support/users/switzer/)
 * (@switzer)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-space-between-posts-added-1/#post-1113882)
 * I responded to this query here:
 * [http://code.openx.org/issues/show/38](http://code.openx.org/issues/show/38)
 * Let’s keep the conversation there for now. Please let me know how it goes..
 * Cheers,
    Scott

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Advertising Manager] Space between posts added…’ is closed to
new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [switzer](https://wordpress.org/support/users/switzer/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/plugin-advertising-manager-space-between-posts-added-1/#post-1113882)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
