dfads shortcode always return something
-
Hello,
I use dfads shorcodes in widgets
[dfads params='groups=712&limit=1&return_javascript=1']
and I display the widget like this:
<?php if( !dynamic_sidebar('pub-totalcovering-top') ): ?> <div class="totalcovering-pub-top"><img src="/images/arch-top.jpg" alt="my default ad" /></div> <?php endif; ?>
My problem is that
dynamic_sidebar('pub-totalcovering-top')
is alwaystrue
, because the shortcode always returns the basique HTML even if there is no ad.But maybe I missed something in my config, shortcode or something else?
Thank you for your help.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘dfads shortcode always return something’ is closed to new replies.