Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wheelhot

macrumors 68020
Original poster
Nov 23, 2007
2,088
279
Hello everyone,
Well I have been wondering, is it possible to create some sort of ad switch PHP code for wordpress.

I shall elaborate, I want the code to be able to detect if its the latest post to use ad code A and if its not the latest post to display ad code B.

The reason I want to do this is because my local ad provider only allow a single ad block to appear under a post which bugs me cause if I show 5 posts on my blog, only the recent post will have an ad while the rest will be empty. I also have a google adsense in my blog which I currently place under each post automatically.

So what I want to do again is, for the latest post to display the ad from my local ad provider while the remaining of the posts to display google adsense.

Is this possible?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.