Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    Which shortcode did you use? [wpsl_map], or [wpsl]?

    [wpsl] renders the store locator, [wpsl_map] will render a single map with 1 or more markers on it without a search function. The [wpsl_map] will only work if you provide 1 or more store ids, or a category slug, see https://wpstorelocator.co/document/shortcodes/.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Can you also make sure wp_footer is called in the footer.php in your theme folder.

    Thread Starter rahul.bhatt

    (@rahulbhatt)

    Yes , I am passing Id with short code [wpsl_map] , Even though it is not working.

    And Yes , <?php wp_footer(); ?> is there in footer.php.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    You are 100% sure the passed id is correct? If you for a second switch to another theme, does it also not work?

    The main problem here is the required JS files and data are not included in the HTML. You didn’t modify anything in the core files?

    Thread Starter rahul.bhatt

    (@rahulbhatt)

    If I print that ID by echo then it is printing correct. So I think it is perfect.

    I tried by switch to default theme, I am getting same issue there as well. I have not modified any core files of plugin.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    The post with the ID does have valid lat / lng values?

    Can you share the exact code you are using around the wpsl_map shortcode, and how you set the ID?

    If you temporary create a new single post and just add [wpsl_map id=”123″] in the text editor does it also not work?

    Crish

    (@carrie_wood)

    Hi,

    Yes I have used same thing.
    [wpsl_map id=”123″] where 123 is the store post id , it’s working before some day ago but for now it’s not display anything. Also not display any error in console also.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    What exactly changed since a few days ago? Plugin updates, added custom code somewhere?

    The [wpsl] shortcode itself does work?

    Can you add this code to the /frontend/class-frontend.php at line 984, and let me know what it shows.

    echo '<pre>';
    print_r( $store_ids );
    echo '</pre>';
    echo '<pre>';
    print_r( $store_meta );
    echo '</pre>';
    Thread Starter rahul.bhatt

    (@rahulbhatt)

    Hello Tijmen,

    Thanks for your help , Map is available in our page now , But when we click on marker , we are getting error in console , Error is :

    Uncaught ReferenceError: permalink is not defined

    Can you please help us to resolve it?

    You can check error in this page :

    http://www.indoorskydiving.world/event/978/

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I checked the code, and the permalink isn’t included if only 1 ID is set.

    This was done to prevent the permalink from showing up if the short code is used on a single store page. In that case it wouldn’t make sense to include the permalink link, since the user is already on the store page, so no point in linking to a page the user is already on.

    But if you use the shortcode outside of a store page, then of course it would make sense to include the permalink. So if you add this code to the functions.php, then the permalink value is included.

    I will add a ‘link’ attribute to the wpsl_map shortcode in the 2.2 update, so you can enable it without having to add code the functions.php to make it work.

    Thread Starter rahul.bhatt

    (@rahulbhatt)

    Thank you so much for quick resolution. Issue is solved when I followed your instructions.

    thank you for resolution..
    what plugin for translating my site??

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Map is blank in my site’ is closed to new replies.