Support » Plugin: Ad Inserter - Ad Manager & AdSense Ads » Ads showing in above Media Gallery in my admin panel!

  • Resolved trankuility

    (@trankuility)


    I sent a message to the email within the Plugin help. Not sure if I should post here instead.

    I recently installed Ad Inserter. Great plugin. But I just discovered that adsense ads are now showing WITHIN my wordpress admin panel. They are displaying above the media gallery!

    Screenshot (uploaded to different account):

    How do I remove those ads?

Viewing 1 replies (of 1 total)
  • Plugin Author Spacetime

    (@spacetime)

    It seems like a bug.

    You have to switch to list view and to have at least one block configured as “Before title” to reproduce it.

    This happens because media list view calls loop_start hook which is used for Before title insertion.
    I will include a fix for this in the next version.

    For a quick workaround you can use the following code to exclude admin pages:

    <?php if (strpos ($_SERVER ['REQUEST_URI'], '/wp-admin/') === false) { ?>
    
    AD CODE
    <?php } ?>

    Don’t forget to enable PHP processing.

    Thank you very much for reporting this bug!

Viewing 1 replies (of 1 total)
  • The topic ‘Ads showing in above Media Gallery in my admin panel!’ is closed to new replies.