Title: View Selected Category
Last modified: August 31, 2016

---

# View Selected Category

 *  Resolved [saban1](https://wordpress.org/support/users/saban1/)
 * (@saban1)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/view-selected-category/)
 * 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/](https://wordpress.org/plugins/wp-store-locator/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/view-selected-category/#post-7060155)
 * It’s clearly mentioned in the documentation for both the [wpsl](https://wpstorelocator.co/document/shortcodes/#store-locator)
   and [wpsl_map](https://wpstorelocator.co/document/shortcodes/#store-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.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/view-selected-category/#post-7060155)
 * Status: resolved