URL parameters and deep links
Filter state lives in the URL. That is what makes a filtered view shareable, bookmarkable, and navigable with the browser Back button - and it is why a filtered page can be a landing page at all.
The prefix

Every parameter starts with a prefix, ks_ by default, so a filter never collides with a parameter your theme or another plugin already uses. It is configurable on the Cache and URLs tab.
ks_room produces ks_room, not ks_ks_room. One named kt_category produces ks_kt_category.The parameters
| Parameter | Example | Meaning |
|---|---|---|
ks_{taxonomy} | ks_room=bedroom,storage | Term slugs in that taxonomy, comma separated. |
ks_vopt_{option} | ks_vopt_color=Navy,Sand | Variant option values as exact display text, not slugs. |
ks_q | ks_q=lamp | Keyword search. |
ks_sort | ks_sort=price_asc | Ordering. Omitted while the section is on its default. |
ks_collection | ks_collection=living-room | Scope to one collection. |
ks_price_min / ks_price_max | ks_price_min=50&ks_price_max=200 | Price bounds. Either may stand alone. |
ks_stock_status | ks_stock_status=in_stock | Availability. |
ks_on_sale | ks_on_sale=1 | Discounted products only. |
ks_rating | ks_rating=4 | That many stars and up. |
ks_operator | ks_operator=or | Only ever present when it is not the default, AND. |
ks_page | ks_page=2 | Pagination. Only ever present past page one. |
The order is always the same
Taxonomies are sorted by their query key, term slugs are sorted within each, variant values are sorted, and the parameters themselves are sorted last. Two shoppers who select the same three filters in three different orders land on byte-identical URLs.
?ks_material=oak&ks_room=bedroom,storage&ks_sort=price_ascWhat the URL does
- Applying a filter pushes a history entry, so Back undoes it and restores the previous results.
- Changing any facet resets pagination to page one - page three of an old filter is meaningless under a new one.
- Every option is a real link, so a filtered URL works with JavaScript disabled and can be crawled.
- A parameter with the prefix that does not name a real taxonomy is ignored.
+ in a URL decodes to a space, so a value like 3+2 seater would arrive as 3 2 seater and match nothing. Variant values encode it as %2B. Only the plus needs this; spaces and quotes are handled downstream.Building a deep link by hand
Anything the filter can produce, you can write yourself - for an email campaign, an ad landing page, or a link in a buying guide.
https://example.com/shop/?ks_material=oak&ks_room=bedroomThe slugs are the term slugs, not their names. If a slug is wrong the parameter simply matches nothing, so test the link before you send it.
Was this page helpful?