• Resolved gregor3001

    (@gregor3001)


    I had another ad plugin (no longer supported) that used short a code. So the website is filled with shortcode like: [ad name=”HTML-1″]

    How can i tell Ad Inserter to place adsense adds where this short code is and in this way use the existing ad placements?

    the description of the plugin is suggesting this is possible or am i mistaken?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Spacetime

    (@spacetime)

    You can use shortcodes of other plugins in Ad Inserter.

    However, in your case you would probably like to replace old shortcodes with Ad Inserter ones.

    There are at least two possible approaches.

    1)
    The easiest way to insert ads on posts is to use automatic insertion. This is also the best approach as you don’t have to modify posts or pages to insert or change ads.
    https://adinserter.pro/documentation#settings

    For example, you configure Ad Inserter to automatically insert ads before the second paragraph and after post content.
    Some common settings

    In this case you would need to remove all old shortcodes.

    2)
    The second approach is to replace old shortcodes with Ad Inserter ones.
    This is not a good approach as you’ll have to manually insert shortcodes into every new post.

    3)
    Of course, combination of both approaches described above is also possible.

    To replace old shortcodes I recommend Search Regex plugin.

    For example, to replace [ad name="HTML-1"] with [adinserter block="1"] you should use

    View post on imgur.com

    First click on Search to see all occurences of the old shortcode. Once you are happy click on Replace to replace them.

    PLEASE NOTE: after replacement there is no way back! Make sure you have a backup of the website (or database) in case something goes wrong.

    To delete old shortcodes simply replace them with empty string.

    When using Ad Inserter shortcodes don’t forget to enable them (button Manual).

    Thread Starter gregor3001

    (@gregor3001)

    Hello,

    Thank you for the help. It appears i then understood the example (old to new shortcode)from the FAQ correctly. However, the search regex appears to no longer work as it gives a “There are no results.” message. A search & replace plugin found the short code and can do the replacement.

    I suggest you include a plugin that supports the latest WP in the guide / FAQ.

    Marking this one as solved.

    • This reply was modified 7 years, 7 months ago by gregor3001.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use shortcodes from other plugins?’ is closed to new replies.