View Categories

Trip Gallery Shortcode

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:

AttributeDefault ValueSinceDescription
trip_id01.0.0The ID of the trip. If left as 0, It automatically fetches the gallery for the current trip page.
titleGallery1.0.0The section title displayed above the gallery.
title_tagh31.0.0The HTML tag used for the title (h2, h3, h4, etc.).
show_titletrue1.0.0Whether 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.

Scroll to Top