Search Documentation

WP Travel User Documentation

  1. Home
  2. Docs
  3. WP Travel User Documentation
  4. Shortcode
  5. Filter Widget Shortcode

Filter Widget Shortcode

Filter widget shortcode is an amazing feature that is released with the version 1.2.1 .  You can add shortcode in page, posts or text widget.

The Shortcode that you have to Add is

[wp_travel_trip_filters]

This shortcode will list all the filters that are available in the plugins.

Further, there are altogether six types by which you can display the filter section using the shortcode.

  1. keyword
  2. fact
  3. trip_type
  4. trip_location
  5. price_orderby
  6. price_range
  7. trip_dates

Keyword:

If you want to filter the trips according to keyword then add below given Shortcode.

[wp_travel_trip_filters filters="keyword"]

Trip Facts:

If you want to filter the trips according to facts then add below given Shortcode.

[wp_travel_trip_filters filters="fact"]

Trip Type:

If you want to filter the trips according to the trip type then add below given Shortcode.

[wp_travel_trip_filters filters="itinerary_types"]

Trip locations:

If you want to filter the trips according to the trip locations then add below given Shortcode.

[wp_travel_trip_filters filters="travel_locations"]

Price Orderby:

If you want to filter the trips according to the Price Orderby then add below given Shortcode.

[wp_travel_trip_filters filters="price"]

Price Range:

If you want to filter the trips according to the Price Range then add below given Shortcode.

[wp_travel_trip_filters filters="price_range"]

Trip Dates:

If you want to filter the trips according to the Trip Dates then add below given Shortcode.

[wp_travel_trip_filters filters="trip_dates"]

Showing more than two filters at the same time using the shortcode:

If you wish to display more than two filters using the shortcode then you add the filter by adding a comma.

Eg: If you wish to display the keyword and trip type filter together then add below given shortcode:

[wp_travel_trip_filters filters="keyword,itinerary_types"]

Frontend:

Was this article helpful to you? Yes No

How can we help?