View Categories

Trip Search Form Shortcode

1 min read

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:

AttributeDefault ValueSinceDescription
search_text'Search' (translatable)1.1.6The placeholder text for the search field.
hide_pricefalse1.1.6Whether to hide the price filter (true or false).
hide_destinationfalse1.1.6Whether to hide the destination filter (true or false).
hide_trip_typefalse1.1.6Whether to hide the trip type filter (true or false).
hide_trip_activitiesfalse1.1.6Whether 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.) accept true or false value.

This shortcode provides a flexible way to add a customizable trip search form to your website.

Scroll to Top