Title: Insert adsense into posts&#8230;
Last modified: August 18, 2016

---

# Insert adsense into posts…

 *  [vexxatu](https://wordpress.org/support/users/vexxatu/)
 * (@vexxatu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/)
 * I know this is and was a discussed issue..but the point im trying to accomplish
   is other that you imagine.
 * I want to insert adsense codes into my posts.I know there are several plugins
   out there to do this for you…but i dont want that.I just want to edit a file(
   a loop) that will always insert the adsense code into each post.
 * The question is,which is the file that allows me that?

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

 *  Thread Starter [vexxatu](https://wordpress.org/support/users/vexxatu/)
 * (@vexxatu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440802)
 * nobody can help me? 🙁
 *  [p11](https://wordpress.org/support/users/p11/)
 * (@p11)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440803)
 * Download Adsense Deluxe, then extract the adsensedeluxe.php into your plugin 
   folder…from there activate it in your plugins and go to your options bar. Create
   a new block and then use that codeword where you want your adds to appear. I’m
   not sure how to make a continuous loop…but that should work.
 *  Thread Starter [vexxatu](https://wordpress.org/support/users/vexxatu/)
 * (@vexxatu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440848)
 * tnx for your answer…unfortunatelly you didn’t read my post carefully…i do know
   those plugins,to insert google ads in my post.What i really want,is to insert
   adsense in my post,without adding the adsense tag each time when i edit or write
   any post.I want to be able to edit the php file that writes my post,so i can 
   add the adsense code there.Is this possible?
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440850)
 * Likely you want to look at your theme’s index.php and possibly single.php if 
   it has one.
 * A reference: [http://www.tamba2.org.uk/wordpress/adsense/](http://www.tamba2.org.uk/wordpress/adsense/)
 *  Thread Starter [vexxatu](https://wordpress.org/support/users/vexxatu/)
 * (@vexxatu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440902)
 * ya..i know some of that..the problem is…i want to have 2 adsense block in my 
   post…and i want to know how can i dod this without installing any plugin
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440903)
 * Add the blocks to your theme files.
 * No plugin necessary. You just need to edit some files — and the link I gave 2
   posts up should help you get that rolling.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440904)
 * HS just gave you the answer – you don’t read carefully, either 🙂
 * On the other hand displaying 2 ad block in every post and having 20 posts shown
   on your main page… that would mean 40 ads. AFAIK Google’s rules says 3 on a webpage.
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440907)
 * google will ignore after the 3rd spot, though yes, having 40 spots might not 
   be great. 😉
 * I think there’s confusing points in here. The OP seems to be requesting a way
   to insert the adsense INTO the post content — I imagine between paragraphs or
   something. If that’s not the case, and he just wanted it on the sidebar and above
   the title or something, then yes, editing the theme. If in fact he wanted it 
   auto-added inbetween paragraphs, some kind of plugin would be necessary.
 * -d
 *  Thread Starter [vexxatu](https://wordpress.org/support/users/vexxatu/)
 * (@vexxatu)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440909)
 * guys…i understand prefectly..im not drunk..
 * The problem is,i want ot insert 2 blocks in a single post..not on index….and 
   i want to insert them inside the text not at start or the end…i can only ad 1
   adsense block editing my single.php file..
 * 1 adsense block in the text..and the next one almost at the end(but not at the
   end).
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440910)
 * I dunno how you’d do that with a theme edit. You’d need a plugin to get “into”`
   the_content()`.
 * Theme change you can put one at the top of the post and one at the end, but you’ll
   need to find a plugin to actually wedge the blocks into the post.
 *  [apexlim](https://wordpress.org/support/users/apexlim/)
 * (@apexlim)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440978)
 * Anyone can help me on step by step on how can I install a adsense plugin.
 *  [garglenr](https://wordpress.org/support/users/garglenr/)
 * (@garglenr)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440979)
 * I’m also a newbie but can’t u just insert one code into the single.php and one
   near the top of comments.php
 *  [xinfo](https://wordpress.org/support/users/xinfo/)
 * (@xinfo)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440980)
 * open your comment.php file you will find two
    <?php endif; ?> <?php endif; ?>
   after this paste your ad code

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

The topic ‘Insert adsense into posts…’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 13 replies
 * 8 participants
 * Last reply from: [xinfo](https://wordpress.org/support/users/xinfo/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/insert-adsense-into-posts/#post-440980)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
