• Resolved moorthyit

    (@moorthyit)


    It is great plugin and thank you for it. I have created 5 store locations and I have showed those locations in a page with shortcode ‘[wpsl]’ and they are displaying fine but store Address is only displaying and I like to show ‘opening hours’ in that left side of the map where we are displaying store locations address. can you tell me how can I show ‘opening hours’ in addition to address in that place?. Thanks.

    https://ww.wp.xz.cn/plugins/wp-store-locator/

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

    (@tijmensmit)

    Copy the code from the usage section and paste it in the functions.php inside your active theme folder.

    Replace the code on line 31-33 with the code below.

    $listing_template .= "\t\t\t" . '<% if ( hours ) { %>' . "\r\n";
    $listing_template .= "\t\t\t" . '<%= hours %>' . "\r\n";
    $listing_template .= "\t\t\t" . '<% } %>' . "\r\n";

    Make sure to go to the WPSL settings page and flush the transient cache in the tools section before reloading the store locator page. If it doesn’t show up, then also make sure to clear your browser cache.

    Thread Starter moorthyit

    (@moorthyit)

    It is displaying now. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hours shortcode is not display inside store location’ is closed to new replies.