logo

Agile Store Locator - Knowledge Base

How can we select a Category on Store Locator by Default?

Agile Store Locator has provided an attribute for default selection to select category in the Store Locator frontend, the selection will be loaded with the page load, and the respective filter will apply with it.

The shortcode attribute for category selection is "select_category", it can be used within your WP shortcode. Add the category ID as the parameter in the attribute.


Example of ShortCode:

[ASL_STORELOCATOR select_category="4"]