Hi,
Is there a way to check if a group has active ads?
I need to change the layout of the page based on this information.
Doing a check like in this post: https://ajdg.solutions/forums/topic/check-if-ads-exist-in-a-group/
is not a nice way and using the wrapper fields like suggested wouldn’t work in this case.
Regards,
Patrick
Hello,
There is no filter or
has_ads()
function or something no.
If a group is empty the group itself will output a HTML comment to that extent.
Hi,
Would be nice to implement such a function.
<?php if (adrotate_group(1) !== '<!-- Either there are no banners, they are disabled or none qualified for this location! -->') { ?>
is really dirty.