Support » Plugin: Advanced Ads – Ad Manager & AdSense » Short Code in Post After Plugin Uninstall

  • Resolved tubella

    (@tubella)


    Hi,

    after I’ve first disabled the plugin and then completely uninstalled it from Plugins, I still get the shortcode text [the_ad_placement id=”content_h2_after”] appearing in post body, after 1st H2 header, throughout all posts.

    Please help me on how to remove this shortcode.

    Thank you.

    • This topic was modified 4 years, 7 months ago by tubella.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Thomas M

    (@webzunft)

    Hi tubella,

    thanks for reaching out.

    Since shortcodes are placed manually, they can’t be removed automatically. This is not just the case with Advanced Ads.

    You can use a plugin to clean it up. I looked on wordpress.org and found these:

    https://wordpress.org/plugins/hide-broken-shortcodes/
    https://de.wordpress.org/plugins/remove-orphan-shortcodes/

    I am sorry to see you disabling Advanced Ads. Please let me know if you ran into any problem with the plugin that I might be able to help with.

    All the best to you and your project!

    Thomas

    Thread Starter tubella

    (@tubella)

    Thanks for a prompt response!

    Let me notice, that shortcodes were not placed manually.
    I used only Advanced Ads placements, automatically on all posts.

    I assume they shouldn’t appear after the plugin disable/uninstall.

    Plugin Author Thomas M

    (@webzunft)

    You are right, automatic placements would not appear after you disable the plugin.

    Advanced Ads placements do not write the shortcode or any other strings into the content of posts in the database. The injection happens on the fly in the frontend only.

    > [the_ad_placement id=”content_h2_after”]

    What placement type is “Content H2 after”? I would assume it is “manual”. This is the only placement meant to be placed manually. It would not inject an ad or the shortcode without an author doing that intentionally.

    Best regards,
    Thomas

    Thread Starter tubella

    (@tubella)

    Yes!
    You were right! The previous website owner injected manual code into single post template file. Removed now!

    Thank you.

    Plugin Author Thomas M

    (@webzunft)

    Happy to help.

    All the best to you and your project!
    Thomas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Short Code in Post After Plugin Uninstall’ is closed to new replies.