Adsense Hack – How to Make your Adsense Show up on the First Post Only!

by max on Wednesday, May 21st, 2008
No Comments
Share
Email Email

Well, a lot of people think you can simply insert your Google adsense code in the index.php file and get adsense ads on every post.

You need to add a little PHP code so your ad only shows up on your first post.

To do this, add the following:


<?php if($first!=1) { $first=1; ?>

…Your adsense code here…

<?php } ?>

This simple php code can work on a blog or any other webiste. Basically, it only allows the code to show up once. Now there’s Wordpress functions to do it to, but why bother when a simple PHP code can solve the problem? , , , , , , , , , ,

Categories: AdSense, Make Money Online.

Rate This Post

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Related News and Resources



If you like this post, then please subscribe to Zedomax.Biz RSS.
You can also subscribe by E-mail by entering your name and e-mail below:

Name: Email:

Leave a Reply


Featured Sites from Zedomax Blog Network