Check if ads exist in a group

HomeForumsAdRotate for WordPressGroupsCheck if ads exist in a group

  • #122128

    resonanz
    Badges:

    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

    #122130

    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.

    #122317

    resonanz
    Badges:

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

You may be interested in