• Resolved saban1

    (@saban1)


    I think there has been a lot of requests to include in the shortcode an option to display “only categories for id 1” for example. Every post I have read mentions this will be out with version 2.1, yet I don’t see any way to do this. Am I missing something?? Can I tell it in a shortcaode yet, DISPLAY CATEGORY “SUCH AND SUCH” on this page?? Doesn’t seem that difficult, not for someone with knowledge of coding! That such person, however, is not me. Any help would be great! Crossing my fingers……

    https://wordpress.org/plugins/wp-store-locator/

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

    (@tijmensmit)

    It’s clearly mentioned in the documentation for both the wpsl and wpsl_map shortcode.

    Get the category slug from the “Store Categories” page, and use it in the shortcode like this:

    [wpsl category="category-slug"]

    This will restrict the show locations to the ones assigned to that specific category.

    You can do the same with the wpsl_map shortcode. This will render a map without any search options, but it will show all the locations from the category slug.

    [wpsl_map category="category-slug"]
Viewing 1 replies (of 1 total)

The topic ‘View Selected Category’ is closed to new replies.