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.
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
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?