Call php function inside of echo function
I am using the T2 method of adding an adsense unit to show on only the first post on the index page.
found here WordPress - add Adsense to your blog
These two parts are used to define and show adsense only on the first post
1st part
<?php $postnum = 1; $showadsense1 = 1; ?>
<?php if ($postnum == $showadsense1) { echo ' <script type="text/javascript"><!-- google_ad_client = <?php get_adsense_code(); ?>; /* xxxxxxxxxxxxxx */ google_ad_slot = "xxxxxxxxx"; google_ad_width = xxx; google_ad_height = xxx; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> '; } ?> <?php $postnum++; ?>
Now inside of the second part you will notice
<?php get_adsense_code(); ?>
My question is would anyone know of a fix for this or is this something that doesnt have a fix.
Thank you
-- Lisa G
-- Lisa G
-- Lisa G