Title: Plugin Works as Expected
Last modified: September 6, 2016

---

# Plugin Works as Expected

 *  [eurotrashNM](https://wordpress.org/support/users/eurotrashnm/)
 * (@eurotrashnm)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-works-as-expected-2/)
 * Thanks plugin works as expected.
 * One thing to be aware of is that the WordPress Editor will convert 3 dashes to
   an emdash.
 * If using the short code in the via the Editor in the content or excerpt area,
   leafly account names that have 3 hyphens in the urls will automatically have 
   the hyphens converted to an emdash entity. This will create an incorrect menu
   url.
 * For example:
    `http://www.leafly.com/embed/menu/my-store—ne?initialWidth=1029&
   childId=leafly-menu`
 * The following will disable the automatic conversion:
 * `remove_filter ('the_content', 'wptexturize');`
    `remove_filter ('the_excerpt','
   wptexturize');`
 * Removing the filter corrects this issue:
    `http://www.leafly.com/embed/menu/my-
   store---ne?initialWidth=1029&childId=leafly-menu`

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

 *  Thread Starter [eurotrashNM](https://wordpress.org/support/users/eurotrashnm/)
 * (@eurotrashnm)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-works-as-expected-2/#post-8178592)
 * Just want to add an update to my comment above the current hosted version of 
   the plugin is using an older embed method no longer supported by Leafly. The 
   new embed method provides an improved user experience and removes the need to
   adjust iframe properties.
 * Link to updated view:
    [https://github.com/wp-plugins/leafly-menu-embed/blob/master/views/leafly-menu.php](https://github.com/wp-plugins/leafly-menu-embed/blob/master/views/leafly-menu.php)
 * Full embed code:
 *     ```
       <div id="leafly-menu"></div><div style="text-align:center;">Visit our profile on <a href="https://www.leafly.com/dispensary-info/some-store-url">Leafly</a></div>
       <script src="https://www.leafly.com/public/global/js/dispensarymanager/embed.js"></script>
       <script>var pymParent = pym.Parent('leafly-menu', 'https://www.leafly.com/embed/menu2/ultra-health-albuquerque---ne', {});</script>
       ```
   
 *  Thread Starter [eurotrashNM](https://wordpress.org/support/users/eurotrashnm/)
 * (@eurotrashnm)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-works-as-expected-2/#post-8178632)
 * Correct Link to Revised View:
    [https://raw.githubusercontent.com/tedgeving/leafly-menu-embed/2434ee87b5dc835c15f1e7fa340d6fcadc6d85e8/views/leafly-menu.php](https://raw.githubusercontent.com/tedgeving/leafly-menu-embed/2434ee87b5dc835c15f1e7fa340d6fcadc6d85e8/views/leafly-menu.php)

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

The topic ‘Plugin Works as Expected’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/leafly-menu-embed_cec0d1.svg)
 * [Leafly Menu for WordPress](https://wordpress.org/plugins/leafly-menu-embed/)
 * [Support Threads](https://wordpress.org/support/plugin/leafly-menu-embed/)
 * [Active Topics](https://wordpress.org/support/plugin/leafly-menu-embed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leafly-menu-embed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leafly-menu-embed/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [eurotrashNM](https://wordpress.org/support/users/eurotrashnm/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-works-as-expected-2/#post-8178632)
 * Status: not resolved