Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Did you use the shortcode within a widget? Shortcodes don’t work in widgets by default and are understood as normal text. An ad widget is on my shortlist though.

    Polish Ladies Cleaning Service

    (@polish-ladies-cleaning-service)

    It works with WordPress’ own simple “Text” widget on our site; see for example https://polishladiescleaningservice.com/house-cleaning-new-hyde-park-ny: both in both the last sidebar widget as well as the leftmost footer widget….

    Also, any way (in a future version, or even as a Pro version exclusive) to ensure that ads won’t repeat across different widgets (that is, be displayed more than once on any given page despite being assigned to multiple widgets on one page) — or would this be somehow handled by the plugin’s “Placement” functionality?

    Thanks!

    Plugin Author Thomas Maier

    (@webzunft)

    Please insert the following line into the functions.php of your theme:

    add_filter('widget_text', 'do_shortcode');

    This should enable shortcodes in widgets.

    Regarding the issue of PLCS: I know what you mean and this might even make the version here on wp.org, but I can think of at least one behaviour that might make problems:
    imagine placement 1 has 2 ads (Ad A and B) and placement 2 just one (Ad A). In case I limit an ad to be displayed only once per page and Ad A is displayed in Placement 1. Placement 2 will be empty. Solving this is technically possible, but too complex to implement in an upcoming release.

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Hi there, thanks for that shortcode — it works!

    Though…there’s a bit of a “quirk”…when the popular Adblock Plus browser plugin/extension is turned on for a site, only the first instance of WordPress’ native “Text” widget is displayed!

    Thus, with an adblocker off, any number of text widgets with the “Advanced Ads” shortcode are displayed, but with an adblocker on, only the first such widget gets output at all.

    Moreover, only the first shortcode within that first widget (if the widget’s got more than one shortcode) is output!

    So…here’s hoping for a native “Advanced Ads” widget soon! ??

    Plugin Author Thomas Maier

    (@webzunft)

    I tried to verify the AdBlock problem on my local environment, but don’t see a problem there. What ad network are you using for the ad?
    Does any content appear after the ad widgets or does the sidebar break completely?

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Hi,

    Honestly, it looks like user error at this point…I can’t replicate my original situation, either, now — probably got confused, that’s all!!

    SORRY FOR THE BOTHER!!!

    Thnx Thomas Maier.. ?? your plugin and your solution helped me..

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not Working’ is closed to new replies.