• My client needs to input the stores carrying either of two product lines. It should be possible using categories to limit the map results to only one of the product lines, no? But when I added the shortcode [wpsl category="helle"], the map showed stores in both product line categories.

    All I did was copy and edit the example from the documentation:

    [wpsl template="default" category="fast-food,italian" 
    start_location="times square,new york"]

    Are my suppositions not correct?

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

    (@tijmensmit)

    Can you make sure to flush the transient cache on the WPSL settings page ( tool section ). Are you using any caching plugins? If so, can you also make sure to flush that cache. Also see what happens when you open the page in private mode.

    Doing [wpsl category=”category-slug”] should indeed restrict the results to the set category.

    Thread Starter Who_Dat

    (@who_dat)

    I flushed the cache. Not using any caching plugin. The test store that I set up in category B still shows up on the map for category A. It doesn’t show up in private mode unless you’re logged in, but if it’s public it shows up.

    I neglected to point out that the version of the plugin is 2.0.4. Is it simply this that’s causing the problem?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    If it works fine in private mode for loggedin users, then it does point to an issue with some sort of caching. Maybe your server uses some kind of caching that isn’t used for loggedin users? Plugins like W3 Total Cache work like that as well, loggedin users get the non cached version, and anyone else sees the cached version.

    I don’t recall fixing a bug related to categories showing up in the search results that shouldn’t be there, but maybe I changed something that does influence the problem you are having. So to rule that out maybe just upgrade to the latest version.

    Is it on a public URL? Can you share it?

    Thread Starter Who_Dat

    (@who_dat)

    It doesn’t work fine in private mode; it still shows up on the wrong map. It just only shows up for logged-in users, which is how I would expect it to. In public mode, it shows up on the wrong map for everyone.

    One thing that I’ve learned is that end users will manage their content, but they will not upgrade anything. The version on this install is way out of date, and all the plugins are as well. I shudder to think what other problems might crop up if I upgrade everything, but it needs to be done so I’d better just bite the bullet. If that doesn’t fix the problem, I’ll get back to you.

    Thread Starter Who_Dat

    (@who_dat)

    Okay, I upgraded everything and the categories now work. The plugin is producing two maps.

    However, sometimes (seemingly randomly) the map itself will not load in Firefox. The pins display, but with no map behind them. Clicking on either zoom button makes the map load.

    Is there a reason why it’s not loading at first?

    Plugin Author Tijmen Smit

    (@tijmensmit)

    Do any errors show up in the browser console?

    Thread Starter Who_Dat

    (@who_dat)

    Yes, here:

    Error console

    Plugin Author Tijmen Smit

    (@tijmensmit)

    One thing I overlooked in your previous response is this.

    The plugin is producing two maps.

    You are using the wpsl shortcode twice on the same page? This is not a good idea, because it will cause issues. You can use the wpsl shortcode once on a page, but the wpsl_map shortcode as many times as you like.

    The file that triggers the TypeError: sequence is null is it from a plugin, or your theme? If it’s from within your theme, can you for a second try a default WP theme, and see if the maps does load normally? If it’s from a plugin, then try to disable that plugin, and see if it makes a difference?

    Can you share the URL here? If not, then you can email it tijmen at wpstorelocator.co.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Shortcode limited to single category not working’ is closed to new replies.