View Categories

How to add Trip Shortcodes?

1 min read

You can use shortcodes to display Trip Info, Video Gallery, Tour Map, and more within pages, posts, tabs, or templates. The list of available shortcodes for any single trip can be found by navigating to:

Dashboard > Trips > All Trips > Select any Trip > WP Travel Engine Settings > Shortcodes.

Here are some examples of shortcodes available in the settings: #
1. Trip Info #

To display trip information, use this shortcode:
[Trip_Info_Shortcode id='2957']

For templates, use the following PHP function:
<?php echo do_shortcode('[Trip_Info_Shortcode id=2957]'); ?>

2. Video Gallery #

To display the Video Gallery for a trip, use this shortcode:
[wte_video_gallery trip_id='2957']

Additional attributes:

  • type: Defines the layout (either ‘popup’ or ‘slider’). Defaults to ‘popup’.
  • title: Specifies the gallery title.
  • label: Adds a label to the gallery.

Example with attributes:
[wte_video_gallery trip_id='2957' type='slider' title='Trip Highlights' label='Watch Video']

3. Tour Map #

To display the tour map for a trip, use this shortcode:
[wte_trip_map id='2957']

For templates, use the following PHP function:
<?php echo do_shortcode('[wte_trip_map id=2957]'); ?>

These shortcodes can be integrated into various sections of your site to showcase trip details effectively.