Title: Adsense Code Problem.
Last modified: August 18, 2016

---

# Adsense Code Problem.

 *  [docholliday](https://wordpress.org/support/users/docholliday/)
 * (@docholliday)
 * [19 years ago](https://wordpress.org/support/topic/adsense-code-problem/)
 * Hi. I’m trying to get my adsense code to appear at the beginning of every post
   with the text wrapped around it to the left. I’m using this code:
 * <div style=”display:block;float:left;”>
    <script type=”text/javascript”><!– google_ad_client
   = “-excluded-“; google_ad_width = 300; google_ad_height = 250; google_ad_format
   = “300x250_as”; google_ad_type = “text_image”; //2007-04-17: Lifecrafting Main
   Post Ad google_ad_channel = “-excluded-“; //–> </script> <script type=”text/javascript”
   src=”[http://pagead2.googlesyndication.com/pagead/show_ads.js”&gt](http://pagead2.googlesyndication.com/pagead/show_ads.js”&gt);
   </script> </div>
 * My problem is that for some of my posts, for what reason I don’t know, the ad
   appears twice on the page, one below the other. I’ve tried placing the ads in
   the single page and index files.
 * You can see this happening [here](http://lifecrafting.net/2007/04/25/meat-part-i-how-its-slowly-killing-you-by-strangling-your-heart-and-riddling-you-with-cancer/)
   
   and not happening [here](http://lifecrafting.net/2007/05/29/the-centrality-of-the-mind/).
   Anyone know what’s going on? How do I get one ad to appear on the main blog page
   and on every single page?
 * Thanks for your time.

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

 *  Thread Starter [docholliday](https://wordpress.org/support/users/docholliday/)
 * (@docholliday)
 * [19 years ago](https://wordpress.org/support/topic/adsense-code-problem/#post-572140)
 * Bump.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years ago](https://wordpress.org/support/topic/adsense-code-problem/#post-572144)
 * The first link you gave:
    [http://lifecrafting.net/2007/04/25/meat-part-i-how-its-slowly-killing-you-by-strangling-your-heart-and-riddling-you-with-cancer/](http://lifecrafting.net/2007/04/25/meat-part-i-how-its-slowly-killing-you-by-strangling-your-heart-and-riddling-you-with-cancer/)
 * Actually has the adsense script pasted into the Post content itself. Edit the
   post and remove the second copy of the javascript from it.
 * Oh, and I completely disagree with all your content. Meat is good. 😉
 *  Thread Starter [docholliday](https://wordpress.org/support/users/docholliday/)
 * (@docholliday)
 * [19 years ago](https://wordpress.org/support/topic/adsense-code-problem/#post-572177)
 * Ahhh. Thanks alot. Sometimes the simplest things are what we’re blind to. Much
   appreciated.

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

The topic ‘Adsense Code Problem.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [docholliday](https://wordpress.org/support/users/docholliday/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/adsense-code-problem/#post-572177)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
