Table of Contents
The [TRIPZZY_TRIP_SEARCH]
shortcode allows you to display a trip search form on your WordPress site. You can customize its functionality using various attributes.
Available Attributes #
Below are the available attributes along with their default values:
Attribute | Default Value | Since | Description |
---|---|---|---|
search_text | 'Search' (translatable) | 1.1.6 | The placeholder text for the search field. |
hide_price | false | 1.1.6 | Whether to hide the price filter (true or false ). |
hide_destination | false | 1.1.6 | Whether to hide the destination filter (true or false ). |
hide_trip_type | false | 1.1.6 | Whether to hide the trip type filter (true or false ). |
hide_trip_activities | false | 1.1.6 | Whether to hide the trip activities filter (true or false ). |
Usage Examples #
Example 1: Display Default Search Form #
[TRIPZZY_TRIP_SEARCH]
This will display the default trip search form with all filters visible.
Example 2: Hide Price and Destination Filters #
[TRIPZZY_TRIP_SEARCH hide_price="true" hide_destination="true"]
This will display the search form without the price and destination filters.
Example 3: Customize Search Placeholder Text #
[TRIPZZY_TRIP_SEARCH search_text="Find Your Adventure"]
This will change the placeholder text in the search field to “Find Your Adventure.”
Notes #
- The
search_text
attribute supports translations. - Boolean attributes (
hide_price
,hide_destination
, etc.) accepttrue
orfalse
value.
This shortcode provides a flexible way to add a customizable trip search form to your website.