• Resolved David Beja

    (@dbeja)


    Hi,

    I’m trying to use the category parameter to restrict the store locations that show on the map, but the map always loads with all the stores.
    I’m using like this:
    [wpsl template="default" category="store-cat-slug"]

    I don’t have any JS errors.
    Any hints of what could be the problem?

    Thank you

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

    (@tijmensmit)

    The category your trying to use does have published locations in it, that also have the lat / lng fields set in the admin editor?

    Thread Starter David Beja

    (@dbeja)

    Thank you, Tijmen.
    It seems it was my mistake.
    I was adding the category slug via a PHP variable, but where I was calling the shortcode I didn’t have access to that variable.
    Now it’s working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category parameter on shortcode not working’ is closed to new replies.