WordPress.org

Ready to get started?Download WordPress

Forums

Store Locator Plus
Search boxes tripple? (7 posts)

  1. Michael Aronoff
    Member
    Posted 1 year ago #

    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/

  2. Charleston Software Associates
    Member
    Plugin Author

    Posted 1 year ago #

    Please provide a link to your site.

  3. Michael Aronoff
    Member
    Posted 1 year ago #

    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.

  4. Charleston Software Associates
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. Michael Aronoff
    Member
    Posted 1 year ago #

    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

  6. Charleston Software Associates
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. Michael Aronoff
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.