Title: urlencode option in modifiers (please?)
Last modified: August 22, 2016

---

# urlencode option in modifiers (please?)

 *  [ashworth](https://wordpress.org/support/users/ashworth/)
 * (@ashworth)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/urlencode-option-in-modifiers-please/)
 * I’ve been trying to do something where I’ve chained together a number of plugins,
   etc. Your plugin is awesome…but it’s hindering me from doing what I need to do.
   For now, I’ve found an incredibly sloppy workaround, but long term…a urlencode()
   modifier would be amazing.
 * In a nutshell, I’m passing some of your variables like `[slp_location name]` 
   or `[slp_location url]` to another URL as a query string, but because some of
   the location names have an `&` in the name, my query string breaks.
 * I thought, hey…use a PHP execution plugin, but when I use their PHP shortcode
   in your content area to customize results, their shortcode doesn’t get evaluated.
   Only yours did. So I’m kind of in a crappy position with this right now.
 * This is a relatively small feature request, and one that’s easily implemented
   into your current modifiers format. I just want a way to urlencode() some text.
   Simple as that.
 * [https://wordpress.org/plugins/store-locator-le/](https://wordpress.org/plugins/store-locator-le/)

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

 *  Thread Starter [ashworth](https://wordpress.org/support/users/ashworth/)
 * (@ashworth)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/urlencode-option-in-modifiers-please/#post-5342397)
 * The modifiers I’m talking about would be located here:
    [http://www.charlestonsw.com/support/documentation/store-locator-plus/user-experience/map/bubble-layout/](http://www.charlestonsw.com/support/documentation/store-locator-plus/user-experience/map/bubble-layout/)
 * Specifically the `slp_location` section.
 * I’m envisioning it would work something like this:
 * `[slp_location company urlencode]`
 * Doing so, should produce something like this:
 * Original text: `ABC Widgets & Co., Inc.`
    Encoded text: `ABC+Widgets+%26+Co.%
   2C+Inc.`
 *  [aaron843](https://wordpress.org/support/users/aaron843/)
 * (@aaron843)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/urlencode-option-in-modifiers-please/#post-5342540)
 * You may want to try posting in this forum: [http://www.charlestonsw.com/forums/forum/support-2/](http://www.charlestonsw.com/forums/forum/support-2/)
 * That forum has an active, SLP-specific community and your question may be answered
   faster.

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

The topic ‘urlencode option in modifiers (please?)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/store-locator-le_dac7af.svg)
 * [Store Locator Plus®](https://wordpress.org/plugins/store-locator-le/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/store-locator-le/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/store-locator-le/)
 * [Active Topics](https://wordpress.org/support/plugin/store-locator-le/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/store-locator-le/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/store-locator-le/reviews/)

## Tags

 * [feature](https://wordpress.org/support/topic-tag/feature/)
 * [urlencode](https://wordpress.org/support/topic-tag/urlencode/)

 * 2 replies
 * 2 participants
 * Last reply from: [aaron843](https://wordpress.org/support/users/aaron843/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/urlencode-option-in-modifiers-please/#post-5342540)
 * Status: not resolved