Title: &#8220;allowemptyaddress&#8221; shortcode issues
Last modified: January 17, 2018

---

# “allowemptyaddress” shortcode issues

 *  [MelissaH](https://wordpress.org/support/users/leeseoftbc/)
 * (@leeseoftbc)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/allowemptyaddress-shortcode-issues/)
 * A little quirk in the code: allowemptyaddress needs a space between the form 
   tag and the class.
    Line 19 in simple-locator-form-ajax.php `if ( isset($this-
   >options['allowemptyaddress']) && $this->options['allowemptyaddress'] == 'true')
   $output .= 'class="allow-empty"';` needs to change to `if ( isset($this->options['
   allowemptyaddress']) && $this->options['allowemptyaddress'] == 'true' ) $output.
   = 'class=" allow-empty"';`
 * The results show all the posts and not just the locations posts. If there’s a
   fix or update to the plugin, it would be great!!

The topic ‘“allowemptyaddress” shortcode issues’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [MelissaH](https://wordpress.org/support/users/leeseoftbc/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/allowemptyaddress-shortcode-issues/)
 * Status: not resolved