Thanks for continuing to work with me on this one…
I put the following exactly in my footer.php
<?php if ( geot_target(array( 'United States' )) ) {
ADSENSE ADS
} ?>
And get:
2015/05/11 15:37:25 [error] 29406#0: *26913941 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected 'ADS' (T_STRING) in /var/www/site.com/htdocs/wp-content/themes/twentyfourteen-child-theme/footer.php on line 20" while reading response header from upstream, client: 42.113.219.189, server: site.com, request: "GET /url/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.site.com", referrer: "https://www.site.com/url/"
And if I put the following in, exactly
<?php if ( geot_target(array( 'United States' )) ) {
ADSENSE
} ?>
I get:
2015/05/11 15:39:45 [error] 29405#0: *26917982 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected '}' in /var/www/site.com/htdocs/wp-content/themes/twentyfourteen-child-theme/footer.php on line 21" while reading response header from upstream, client: 209.155.200.206, server: site.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.site.com"
Do I need to use echo or PHP include or something for the actual adsense ad code? Would you happen to know how to do that?
Thank you!!