WordPress.org

Support

Search boxes tripple?

  • I am on SLP 3.6

    In any event my problem is that no matter what I do the search field tripple (yes show 3 times) on my SLP. In the Radius dropdown box I see 10,25,50,100,500,10,25,50,100,500,10,25,50,100,500

    The address entry field shows 3x.

    Has anyone else seen this? I have disabled all other plugins and that did not help. It is very strange.

    http://wordpress.org/extend/plugins/store-locator-le/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Store Locator Plus

    @charlestonsw

    Please provide a link to your site.

    The page is at http://www.intlwindow. com/dealer-locator/
    (remove the space for proper link)

    I hard coded a working search function into the wordpress page and turned off the search and radius box I had on. But if you look at the code you can see:

    <div id='address_search'>
    
                          <div id='addy_in_address' class='search_item'>
                    <input type='hidden' id='addressInput' value='' />
                </div>
                         <div id='addy_in_address' class='search_item'>
                    <input type='hidden' id='addressInput' value='' />
                </div>
                         <div id='addy_in_address' class='search_item'>
                    <input type='hidden' id='addressInput' value='' />
                </div>
                   </div>

    I used CSS to hide the whole div since even though the inputs were hidden there was still extra whitespace.

    Plugin Author Store Locator Plus

    @charlestonsw

    I just spent a full day debugging a similar issue on another site. Their theme was manually calling shortcodes out of context and thus calling the render_shortcode() function in SLP multiple times.

    This will not work properly as there are global variables that are not reset on each shortcode call. The shortcode should only be called in the main content loop.

    I am using the shortcode [STORE-LOCATOR] one on my page. How can I fix the problem? Should I use a php call in a custom template page? If so what would I use?

    Thanks

    Plugin Author Store Locator Plus

    @charlestonsw

    Just using [STORE-LOCATOR] in the page content should work fine. Something in your theme or with another plugin is forcing the shortcode to be called prematurely.

    Yes, I understand. So what are my solutions. Where should I look to fix the theme or can I do a workaround by not using a shortcode but using a PHP code instead?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Search boxes tripple?’ is closed to new replies.
Skip to toolbar