Adsense instead of -more- tag?

Here is my first adsense placement idea for my posts. I edited one of the files in wp-includes folder to replace the <!–more–> tag in wordpress with an adsense bar. The reason I wanted this was not to go through process of adding adsense each time I post.

I first thought I had to change the tinyMCE files to do this so I have to check and test every one of the related files. The solution was simpler than I thought. You just need to find the post-template.php file in your wp-includes folder and change the code on line 98.

post-template.php wp-hack adsense

You can place any html code you want between <span id=”more-’.$id.’”> and </span>. After you click on the more link, you will see that the full post now contains an adsense banner in that place. Now I am looking for another place on my blog to place my next adsense for content bar. If anyone has any idea where I can get high CTR numbers, please feel free to comment. And don’t forget, since I am using the dofollow trackbacks plugin, if you talk about this hack on your blog, You will get a backlink in return!

PS: This wp-hack got me lots of new plugin ideas, but first things first right? When everyone thought there is no plugin left to write for wordpress :)

12 Comments to “Adsense instead of -more- tag?”

  1. Vinod Ponmanadiyil 3 June 2007 at 11:21 pm #

    The best CTR is obtained when you place a 336 within the post content.

  2. Cansun 4 June 2007 at 11:01 am #

    What do you mean by 336?

  3. huseyin 4 June 2007 at 1:27 pm #

    Site admine Mesaj olarak yolluyorum öncelikle bunu Belirteyim. Siteniz son derece güzel ayrica ingilizce olmasi ve böyle bilgiler vermenizde beni son derece sevindirdi.Benimde birkaç tane İngilizce web sitem var. karşılıklı Fikir alışverişi yapabileceğimize umuyorum bu yüzeden size yazdim. Eger msn adresimi eklerseniz tanışmak isterim. kOLAY GELSİN BAŞARILAR

  4. Web 2.0 Seo 14 June 2007 at 5:09 am #

    Use the new rule chang to your advantage. You get 3 linkbars nos. I am converting every site we have to take advantage :)

    728 top bars, inline 468 and side bar whatever fits. Enjoy

  5. eylultoprak 23 July 2007 at 12:55 pm #

    merhaba bunu bende kullanmak istiyorum.

    çok iyi bir ingilizcem yok.
    97 -100 nolu satırda şunlar var

            if ( $more ) {
                $output .= '<a id="more-'.$id.'"></a>'.$content[1];
               
            } else {

    elimdeki adsense kodunu nereye ve nasıl koymam gerekli

    birde temada more tag'ı şöyle

    <?php the_content(__('yazının devamı..')); ?>

    53 numaralı satırda post-template the_content var wordpress sürüm 2.1.3 yardımçı olursanız sevinirim :)

  6. Turk Hit Box 1 November 2007 at 12:15 am #

    $output .= '<a id="more-'.$id.'">adsense kodu buraya gelecek</a>'.$content[1];

  7. eylultoprak 23 November 2007 at 9:10 pm #

    2.3.1 de adsense kodunu koydum.. fakat alttaki adsense ile yer değiştiriyor. :S anlayamadım.

  8. eylultoprak 23 November 2007 at 9:41 pm #

    $content[1]; değerini $content[2]; yapınca sorun giderildi bilginize.

  9. Sir Pavlow 20 December 2007 at 12:42 pm #

    güzel bir uygulama teşekkürler.

  10. Bored No More 15 January 2008 at 10:21 am #

    Hey ! thatz a great idea :D I think I'll try it out on my blog.

  11. acakadut 21 June 2008 at 9:14 am #

    thanks a bunch mate. I’ve been looking for this :)

    one more question. Is there any way we can find out whether the post has more tag or not? otherwise we’ll miss 1 spot if the post doesn’t have the more tag :(

  12. Bobby 2 April 2010 at 6:22 pm #

    Your rss feed isn’t working


Leave a Reply