Support » Fixing WordPress » 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

    (@vexxatu)

    nobody can help me? 🙁

    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

    (@vexxatu)

    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?

    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/

    Thread Starter vexxatu

    (@vexxatu)

    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

    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.

    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.

    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

    (@vexxatu)

    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).

    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.

    Anyone can help me on step by step on how can I install a adsense plugin.

    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

    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.