Conditional php code not working
-
I am using the Adsense Deluxe plugin to display Google Adsense ads. I want to display a particular ad only on my blog directory page. I am using this code but the ad isn’t displaying:
<?php if (is_page('garden-blog-directory')) {; ?> <?php adsense_deluxe_ads('blog_directory_sidebar'); ?> <?php } ?>
Can anyone tell me what I am doing wrong? I figure I am missing punctuation somewhere.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conditional php code not working’ is closed to new replies.