Title: Third party shortcode insertation
Last modified: March 14, 2023

---

# Third party shortcode insertation

 *  Resolved [wordpresslover7](https://wordpress.org/support/users/wordpresslover7/)
 * (@wordpresslover7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/third-party-shortcode-insertation/)
 * Hi, I want to insert the above shortcode automatically with Adinserter blocks.
   Unfortunately it doesn’t work out of the box. I read about Adinserter shortcodes
   but it does not refer to the third party shortcodes. This is actually a banner
   in the form of hotspot.
 *     ```wp-block-code
       [fusion_image_hotspot_point pos_x="82.0" pos_y="55.9" icon="" title="Zobacz" button_action="link" long_title="" long_text="" popover_placement="auto" link="https://rekinfinansow.pl//rf/lokata-inbank-lojalna/?cost2profit=banercontentzarabianie" link_title="Zobacz" link_target="_blank" font_size="" hotspot_text_color="" hue="" saturation="" lightness="" alpha="" hotspot_background_color="rgba(255,255,255,0)" hotspot_hover_text_color="" hotspot_hover_background_color="" icon_distance="" padding_top="" padding_right="" padding_bottom="" padding_left="" border_radius_top_left="" border_radius_top_right="" border_radius_bottom_right="" border_radius_bottom_left="" /][/fusion_image_hotspots]
       ```
   
 * It would work if Adinserter inserted the first part of the shortcode, unfortunately
   it converts into div text.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthird-party-shortcode-insertation%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/third-party-shortcode-insertation/#post-16558365)
 * Hello,
 * the plugin expands WP shortcodes before insertion via WP function `do_shortcode()`.
   Whetever this function returns gets inserted.
 * Maybe this is not a registered WP shortcode. The responsible plugin may process
   the post content like Ad Inserter (via `the_content ()` filter hook) and replace
   this “shortcode” with something.
 *  Remote debugging doesn’t seemt to be enabled so I can’t check.
 * You can try to lower Ad Inserter plugin priority to some lower number (e.g. 5)
   for earlier processing/insertion:
   [https://adinserter.pro/documentation/plugin-settings#plugin-priority](https://adinserter.pro/documentation/plugin-settings#plugin-priority)
 *  Thread Starter [wordpresslover7](https://wordpress.org/support/users/wordpresslover7/)
 * (@wordpresslover7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/third-party-shortcode-insertation/#post-16558397)
 * The remote debugging is now on. The shortcode is of course registered – it is
   showed in other places on the page. I tried to change Adinserter priority , eg.
   5 but it does not insert any code.
 *  Thread Starter [wordpresslover7](https://wordpress.org/support/users/wordpresslover7/)
 * (@wordpresslover7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/third-party-shortcode-insertation/#post-16558449)
 * Please let me know if debugging works for you as I can see it works in admin,
   but when I am logged out I cannot see the debugging blocks etc.
 * I think the problem is Adinserter does not process the two-parts shortcodes. 
   I looks like it strips the first part.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/third-party-shortcode-insertation/#post-16558455)
 * As explained, if the “shortcode” gets replaced with something that doesn’t mean
   the shortcode is registered in WP. Please check my previous post.
 * This is the shortcode in the code block:
 *     ```wp-block-code
       [fusion_image_hotspot_point pos_x="82.0" pos_y="55.9" icon="" title="Zobacz" button_action="link" long_title="" long_text="" popover_placement="auto" link="https://rekinfinansow.pl//rf/lokata-inbank-lojalna/?cost2profit=banercontentzarabianie" link_title="Zobacz" link_target="_blank" font_size="" hotspot_text_color="" hue="" saturation="" lightness="" alpha="" hotspot_background_color="rgba(255,255,255,0)" hotspot_hover_text_color="" hotspot_hover_background_color="" icon_distance="" padding_top="" padding_right="" padding_bottom="" padding_left="" border_radius_top_left="" border_radius_top_right="" border_radius_bottom_right="" border_radius_bottom_left=""/][/fusion_image_hotspots]
       ```
   
 * This is what is returned by the `do_shortcode ()` and inserted:
 *     ```wp-block-code
       <a style="--awb-hotspot-background-color:rgba(255,255,255,0);--awb-pos-x:82.0%;--awb-pos-y:55.9%;" class="awb-image-hotspots-hotspot awb-image-hotspots-hotspot-4" href="https://rekinfinansow.pl//rf/lokata-inbank-lojalna/?cost2profit=banercontentzarabianie" title="Zobacz" target="_blank"> Zobacz</a>[/fusion_image_hotspots]
       ```
   
 * So the plugin inserts exactly what is returned from the shortcode expansion.
 * It seems that your code is wrong, you are closing a shortcode that is not opened:`[/
   fusion_image_hotspots]`
 * > I think the problem is Adinserter does not process the two-parts shortcodes.
   > I looks like it strips the first part.
 * As explained, Ad Inserter only inserts what the responsible plugin for the shortcode
   returns. Ad Inserter itself does not expand other shortcodes, it calls WP function
   for this.
 *  Thread Starter [wordpresslover7](https://wordpress.org/support/users/wordpresslover7/)
 * (@wordpresslover7)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/third-party-shortcode-insertation/#post-16558470)
 * I cannot believe how damn I am. You are right of course, I inserted incomplete
   shortcode, it lacked the begining (first part, standalone shortcode, closing 
   part)
 *  I am really sorry for taking your time!
 * Anyway I hope this thread will help others debug similar problems without your
   help.
    -  This reply was modified 3 years, 2 months ago by [wordpresslover7](https://wordpress.org/support/users/wordpresslover7/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Third party shortcode insertation’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [wordpresslover7](https://wordpress.org/support/users/wordpresslover7/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/third-party-shortcode-insertation/#post-16558470)
 * Status: resolved