Title: Adding Adsense inside a post
Last modified: August 18, 2016

---

# Adding Adsense inside a post

 *  [phaze112](https://wordpress.org/support/users/phaze112/)
 * (@phaze112)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/)
 * Does anyone know how to add adsense ads inside an actual post, not before it 
   or after it, but i mean like a block inside a post. thanks.

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

 *  [trustme](https://wordpress.org/support/users/trustme/)
 * (@trustme)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552884)
 * check out the adsense delux plugin.
    it will do it for you.
 *  [Rok](https://wordpress.org/support/users/rok/)
 * (@rok)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552889)
 * Or refer [this post for AdSense Plugins](http://www.ditii.com/blog/2006/11/14/10-best-wordpress-plugins-for-google-adsense/).
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552891)
 * Generally speaking, it’s a bad idea to insert actual adsense code into your actual
   post.
 * If you want adsense code to be displayed inside a post, you really should use
   a plugin for the purpose. Or modify your template.
 *  Thread Starter [phaze112](https://wordpress.org/support/users/phaze112/)
 * (@phaze112)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552898)
 * Yes, exactly. I want to modify my template, not spend time inserting code for
   each post.
 * He talks about ways to insert this line of code:
    <?php adsense_deluxe_ads(‘ad_block_name’);?
   > into your template so that you do not have to modify each post so that it incluldes
   adsense.
 * However, I am not sure where to add that line of code.
 * I am trying to accomplish this:
    [http://www.johnchow.com/](http://www.johnchow.com/)
 * *when I use this plug in and put the code in the actual post, it does not show
   up like that as the adsense block takes up its own lines and no text is on those
   lines.
 *  Thread Starter [phaze112](https://wordpress.org/support/users/phaze112/)
 * (@phaze112)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552907)
 * well i figured out how to do it manually into each post by just adding <div style
   =”margin: 3px; float: right;”> before the adsense code and of course </div> after.
 * I just really knew I wish a way to get my template to do this for each post
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552921)
 * How about editing the template and putting that code into there? Not that difficult,
   really.
 *  Thread Starter [phaze112](https://wordpress.org/support/users/phaze112/)
 * (@phaze112)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552924)
 * what?
 * Put it into which part of the template? I have no idea what you are talking about…
 * The template I am using has about 10 theme files and I do not which one to change.
 * I have been at this for 4 hours, it seems pretty difficult.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552925)
 * What file you edit depends on where you want the adsense block to appear. You
   have not told us where you want it to be. “In a post” is not an answer. In a 
   post on the main page? Single post pages? Category pages? Archive pages? Do want
   it to show on all the posts? Just the top post? Just the last post?
 * There’s a lot of possible places to put it. Where do you want it to be? Be specific.
 * Reading this might help you understand what all those pages in your theme are
   for:
    [http://codex.wordpress.org/Using_Themes#Theme_Files](http://codex.wordpress.org/Using_Themes#Theme_Files)
 * Also, read this to understand how some of them are used:
    [http://codex.wordpress.org/Template_Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
 *  Thread Starter [phaze112](https://wordpress.org/support/users/phaze112/)
 * (@phaze112)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552934)
 * I am trying to get it just like this:
    [http://www.totalcomputerrepair.com/](http://www.totalcomputerrepair.com/)
 * But I did that by putting the code in on that single post, any idea which theme
   file generally would handle such things?
 * I have been looking at those links and am understanding how they all are relating
   to the physical appearance, so thank you alot.
 *  Thread Starter [phaze112](https://wordpress.org/support/users/phaze112/)
 * (@phaze112)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552949)
 * I’d like it just on my first post on the root page.
 * Any idea if this is even possible at all?
 * Or because this is done inside the post,,,, it has be done each and everytime?
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552951)
 * If you want it physically inside the post, you need to either:
 * – use a plugin with a custom tag (I assume one has an `<adsense/>` tag…) to embed
   where you want it in the posts. That way, it gets inserted for you ‘on demand’.
   You just add a tag.
    – embed it physically in the posts you care about – embed
   in your template, and use CSS to ‘float’ it into the right location (I’d have
   to think about this, since the text flows around it…).
 * -d

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

The topic ‘Adding Adsense inside a post’ is closed to new replies.

## Tags

 * [inside](https://wordpress.org/support/topic-tag/inside/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 5 participants
 * Last reply from: [davidchait](https://wordpress.org/support/users/davidchait/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/adding-adsense-inside-a-post/#post-552951)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
