I run several wordpress sites that run the GeoIP script from MaxMind and I have had no problems with it - until now. The script still works like usual in my sidebar, but for some reason it does not work when I run it in the "post-part" (code I write in the backend of the wordpress site, under posts or pages). It only show the non-US ads, and I don't get any PHP errors (I've added a Exec-PHP script to be able to run PHP in posts). I were wondering if anyone could tell me why this does not work? This does not work for any other sites either, but all of them have them working for the sidebar. One of the sites I have Ive written the home page in the Main Index Template (index.php) and when using the GeoIP there it works in the posts/page "area". The method I am using is the one explained in this thread: http://www.pokeraffiliatelistings.com/forums/wordpress-web-design-coding-technical/26347-geotarget-tool-non-wordpress-sites.html Are there anyone that could have an answer for why this does not work in the post-area, but in the other areas? Does it retrieve the posts before it retrieves the code for the site design? The site in question is www---casinodepositbonuses---org Example code from the bottom ad in the sidebar: <?php if($country=='US'): ?> <a href="url" target="_new"><img src="url" /></a> <?php else: ?> <!-- Tracking Code - DO NOT MODIFY - ANY MODIFICATIONS WILL RESULT IN NON TRACKING --><a href="url" rel="nofollow" target="_blank" ><img src="url" alt="casino treasure cruise" border="0"/></a><!-- End Of Tracking Code - DO NOT MODIFY --> <?php endif; ?> I am pretty sure that it is not a coding problem and might have something with the order that Wordpress runs things now that I think about it.