Table of Contents
The Tripzzy plugin provides several shortcodes to enhance trip pages with dynamic content. One of them is the [TRIPZZY_GALLERY] shortcode, which displays the image gallery of a specific trip.
This shortcode is designed to work only within the trip detail page and helps showcase your trip photos in an attractive gallery format.
Available Attributes #
The shortcode comes with the following default attributes:
| Attribute | Default Value | Since | Description |
|---|---|---|---|
trip_id | 0 | 1.0.0 | The ID of the trip. If left as 0, It automatically fetches the gallery for the current trip page. |
title | Gallery | 1.0.0 | The section title displayed above the gallery. |
title_tag | h3 | 1.0.0 | The HTML tag used for the title (h2, h3, h4, etc.). |
show_title | true | 1.0.0 | Whether to display the title above the gallery. Accepts true or false. |
Usage Examples #
1. Display Default Gallery (on Trip Page) #
[TRIPZZY_GALLERY]
This will show the gallery of the current trip with the default title “Gallery”.
2. Change the Title Text #
[TRIPZZY_GALLERY title="Trip Memories"]
This displays the gallery with the custom title “Trip Memories”.
3. Change Title Heading Tag #
[TRIPZZY_GALLERY title_tag="h2"]
This changes the title tag from <h3> to <h2>.
4. Hide the Title #
[TRIPZZY_GALLERY show_title="false"]
This will display the gallery without showing the title section.
Important Notes #
- This shortcode only works on trip detail pages.
- If you use
trip_id, make sure the ID corresponds to a valid trip; otherwise, no gallery will be displayed. - For consistent design, the gallery layout follows your theme and Tripzzy plugin styling.
✅ Use [TRIPZZY_GALLERY] to beautifully display trip photos and enhance your travel package presentation.