View Categories

Trip Taxonomy Shortcode

1 min read

The [TRIPZZY_TRIP_TAXONOMIES] shortcode displays a list of trip taxonomies such as destinations, types, or activities. It can be customized using the following attributes.

Available Attributes #

Below are the available attributes along with their default values:

AttributeDefault ValueSinceDescription
taxonomytripzzy_trip_destination1.1.3The taxonomy to display (e.g., tripzzy_trip_destination, tripzzy_trip_type, tripzzy_trip_activities).
orderbyname1.1.3Field used to order terms (e.g., name, count).
orderasc1.1.3Order direction (asc for ascending, desc for descending).
number41.1.3Number of terms to display.
enable_overlaytrue1.2.2Whether to show an overlay effect on taxonomy items. Accepts true or false.
hide_emptyfalse1.1.3Whether to hide taxonomies with no associated trips. Accepts true or false.

Usage Examples #

Example 1: Display Default Taxonomy List #

[TRIPZZY_TRIP_TAXONOMIES]

Displays 4 terms from the tripzzy_trip_destination taxonomy, ordered by name in ascending order.

Example 2: Show Trip Types Without Overlay #

[TRIPZZY_TRIP_TAXONOMIES taxonomy="tripzzy_trip_type" enable_overlay="false"]

Displays trip types without the overlay effect.

Example 3: Display 6 Most Populated Activities in Descending Order #

[TRIPZZY_TRIP_TAXONOMIES taxonomy="tripzzy_trip_activities" number="6" orderby="count" order="desc"]

Displays 6 activity terms sorted by number of trips in descending order.

Notes #

  • Ensure the correct taxonomy slug is used (e.g., tripzzy_trip_destination).
  • The shortcode supports styling and layout options through your theme or custom CSS.
  • Boolean attributes like enable_overlay and hide_empty accept true or false values.

Use this shortcode to highlight key destinations, trip types, or activities and enhance trip discoverability on your website.

Scroll to Top