I have created an ad with Advert Type ‘Homepage’ and one image ad.
In the homepage template I have created a div called ‘homepage-ads’ which appears OK on the screen.
In the div I put the following code:
<?php if (function_exists(‘adkingpro_func’)) do_shortcode(“[adkingpro type=”Homepage”]”); ?>
On refreshing the page I get a blank screen.
I try again with <?php if (function_exists(‘adkingpro_func’)) do_shortcode(“[adkingpro type=Homepage]”); ?>
i.e. removing the quotes from around “Homepage”.
This time the page displays, but the advert does not.
What am I doing wrong please?
- The topic ‘Ad not displaying’ is closed to new replies.