Table of Contents
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:
| Attribute | Default Value | Since | Description |
|---|---|---|---|
taxonomy | tripzzy_trip_destination | 1.1.3 | The taxonomy to display (e.g., tripzzy_trip_destination, tripzzy_trip_type, tripzzy_trip_activities). |
orderby | name | 1.1.3 | Field used to order terms (e.g., name, count). |
order | asc | 1.1.3 | Order direction (asc for ascending, desc for descending). |
number | 4 | 1.1.3 | Number of terms to display. |
enable_overlay | true | 1.2.2 | Whether to show an overlay effect on taxonomy items. Accepts true or false. |
hide_empty | false | 1.1.3 | Whether 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_overlayandhide_emptyaccepttrueorfalsevalues.
Use this shortcode to highlight key destinations, trip types, or activities and enhance trip discoverability on your website.