Title: Breaks when using interchange
Last modified: August 21, 2016

---

# Breaks when using interchange

 *  Resolved [Saxafrass](https://wordpress.org/support/users/saxafrass/)
 * (@saxafrass)
 * [12 years ago](https://wordpress.org/support/topic/breaks-when-using-interchange/)
 * Plugin works great unless I’m loading php content via data-interchange.
 * I’m including the require($_SERVER[‘DOCUMENT_ROOT’].’/wp-load.php’); at the beginning
   of my php files that data-interchange is flipping between. All other WordPress
   stuff is running fine. The gallery shortcode is even rendered, but just as a 
   regular wordpress gallery.
 * If I pull all of the content from my “medium.php” out and just paste it into 
   the php file that is utilizing data-interchange the gallery works as expected.
   Is there something else I need to require at the beginning of my interchange 
   files?
 * When I look at the html that is being spit out the interchange version of the
   gallery does include the carousel div. Not sure if that helps. Appreciate any
   thoughts on this… Thanks.
 * [https://wordpress.org/plugins/zurb-foundation-5-clearing-gallery/](https://wordpress.org/plugins/zurb-foundation-5-clearing-gallery/)
 * ======UPDATE=======
    So after pulling my hair out for the better part of an hour
   I found the solution. Needed to put the following in my .js
 * $(“#interchange-element”).on(“replace”, function() {
    $(document).foundation();});

Viewing 1 replies (of 1 total)

 *  Plugin Author [ben.moody](https://wordpress.org/support/users/benmoody/)
 * (@benmoody)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/breaks-when-using-interchange/#post-4960147)
 * thanks for the tip, glad you found the solution to your issue.

Viewing 1 replies (of 1 total)

The topic ‘Breaks when using interchange’ is closed to new replies.

 * ![](https://ps.w.org/zurb-foundation-5-clearing-gallery/assets/icon-128x128.jpg?
   rev=1038541)
 * [Zurb Foundation 5 Clearing Gallery](https://wordpress.org/plugins/zurb-foundation-5-clearing-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zurb-foundation-5-clearing-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zurb-foundation-5-clearing-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/zurb-foundation-5-clearing-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zurb-foundation-5-clearing-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zurb-foundation-5-clearing-gallery/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ben.moody](https://wordpress.org/support/users/benmoody/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/breaks-when-using-interchange/#post-4960147)
 * Status: resolved