Title: Dynamic modal shortcode
Last modified: April 26, 2021

---

# Dynamic modal shortcode

 *  Resolved [leost](https://wordpress.org/support/users/leost/)
 * (@leost)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/dynamic-modal-shortcode/)
 * Hello!
 * I have a list of links in my site that when clicked opens a modal with the contents
   of a post. Each link represents a post. I added the shortcode to the modal and
   it is loading the addtoany html code correctly, but no buttons are appearing.
 * What do I need to do so that the shortcode works with dynamic content?
 * Thank you!
    -  This topic was modified 5 years, 3 months ago by [leost](https://wordpress.org/support/users/leost/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/dynamic-modal-shortcode/#post-14394920)
 * Hello!
 * Just fire the standard `post-load` event as mentioned in [this FAQ](https://wordpress.org/plugins/add-to-any/#how%20can%20i%20load%20the%20buttons%20after%20content%20insertion%20with%20ajax%20and%20infinite%20scroll%3F).
 * `jQuery( document.body ).trigger( 'post-load' );`

Viewing 1 replies (of 1 total)

The topic ‘Dynamic modal shortcode’ is closed to new replies.

 * ![](https://ps.w.org/add-to-any/assets/icon.svg?rev=972738)
 * [AddToAny Share Buttons](https://wordpress.org/plugins/add-to-any/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-any/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-any/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-any/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-any/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-any/reviews/)

## Tags

 * [post-load](https://wordpress.org/support/topic-tag/post-load/)

 * 1 reply
 * 2 participants
 * Last reply from: [micropat](https://wordpress.org/support/users/micropat/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/dynamic-modal-shortcode/#post-14394920)
 * Status: resolved