View Categories

Trip Code Shortcode

The Tripzzy plugin provides useful shortcodes to display trip-related information on your website. The [TRIPZZY_TRIP_CODE] shortcode is specifically designed to show the Trip Code of a particular trip.

This shortcode works only inside the trip detail page and helps highlight the unique code assigned to each trip package.


Available Attributes #

The shortcode includes the following attribute:

AttributeDefault ValueSinceDescription
trip_id01.0.0The ID of the trip. If left as 0, It automatically fetches the code for the current trip page.

By default, when used on a trip page, the shortcode automatically displays the trip code of the current trip.


Uses Examples #

1. Display Trip Code of Current Trip #

[TRIPZZY_TRIP_CODE]

This will display the trip code of the trip being viewed.

2. Display Trip Code by Trip ID #

[TRIPZZY_TRIP_CODE trip_id="25"]

This will display the trip code of the trip with ID 25.


Important Notes #

  • This shortcode only works on trip detail pages.
  • If you use a trip_id, ensure that it corresponds to a valid trip, otherwise no trip code will be displayed.
  • The trip code is managed within the Tripzzy trip settings when creating or editing a trip.

✅ Use [TRIPZZY_TRIP_CODE] to show a unique identifier for your trips, making it easier for customers and administrators to reference specific packages.

Scroll to Top