Here is a list of shortcodes provided by WP Travel Engine.
If you want to display trip packages on various pages, WP Travel Engine Gutenberg Blocks and Elementor widgets are helpful. They are drag-and-drop and require no coding skills. Plus, you can display destinations, trip types, and activities and choose from various layouts.
The Blocks are included in the core WP Travel Engine. To use Elementor Widgets, you need to install WP Travel Engine Elementor Add-on.
Please refer to the developer’s documentation if you are looking for hooks and filters.
1. Trip Facts Shortcode
[Trip_Info_Shortcode id='trip_id']
Here, you can replace trip_id with the trip ID.
Display Trip Info of chosen trip in posts/pages/tabs.
2. Display All Trips Shortcode
[wte_trip] displays all trips by default in a grid layout.
Further, this shortcode can be enhanced by setting the layout and posts number like here:
[wte_trip layout='list/grid' postsnumber='Number of trips to display']
Where either list or grid layout and the number of posts to be displayed can be specified.
3. Display Selected Trips Shortcode
[wte_trip ids='trip_id1, trip_id2']
where trip_id is replaced by the trip ID. This shortcode displays trips by ID.
Further, this shortcode can also be enhanced by setting the layout and posts number like here:
[wte_trip ids='trip_id1, trip_id2' layout='list/grid' postsnumber='Number of trips to display']
4. Display Trips By Taxonomy Shortcode
[wte_trip_tax]
which displays all trips.
Further, this shortcode can be enhanced by setting the layout and posts number like here:
[wte_trip_tax layout='list/grid' postsnumber='Number of trips to display']
5. Display trips by Trip Activities
[wte_trip_tax activities='term_id1, termid2']
where term_id is replaced by the activities term ID.
Further, this shortcode can be enhanced by setting the layout and posts number like here:
[wte_trip_tax activities='term_id1, termid2' postsnumber='Number of trips to display' layout='list/grid']
6. Display trips by Trip Destination
[wte_trip_tax destination='term_id1, term_id2']
where term_id is replaced by the destination term ID.
Further, this shortcode can be enhanced by setting the layout and posts number like here:
[wte_trip_tax destination='term_id1, term_id2' postsnumber='10' layout='list/grid']
7. Display trips by Trip Type
[wte_trip_tax trip_types='term_id1, term_id2']
where term_id is replaced by the trip type term ID.
Further, this shortcode can be enhanced by setting the layout and posts number like here:
[wte_trip_tax trip_types='term_id1, term_id2' postsnumber='10' layout='list/grid']
8. WTE Map Shortcode
[wte_trip_map id='trip_id']
where trip_id is replaced by the trip ID.
Displays trip map based on iframe embedded and map image uploaded in map tab of the trip.
9. WTE Video Gallery Shortcode
[wte_video_gallery trip_id='trip_id']
where trip_id is replaced by the trip ID.
Further, this shortcode can be enhanced by setting type, title, and label like here:
[wte_video_gallery trip_id='trip_id' type='popup/slider' title='' label='']
Displays video added to the trip in the selected type, either popup or slider and further has the option to set title and label for the video.
10. WTE Cart Shortcode
[wp_travel_engine_cart]
Displays the number of trips added to the cart, if any exist.
11. WTE User Dashboard Shortcode
[wp_travel_engine_dashboard]
Displays user dashboard for the user, listing out bookings made by the user and other features provided in the user dashboard.
This shortcode is added to User Dashboard Page.
12. WTE Trip Code Shortcode
[wte_trip_code id='trip_id']
where trip_id is replaced by the trip ID. Displays the trip code of the trip
13. WTE Place Order Shortcode
[WP_TRAVEL_ENGINE_PLACE_ORDER]
This shortcode is added to the checkout page.
14. WTE Thank You Shortcode
[WP_TRAVEL_ENGINE_THANK_YOU]
This shortcode is added to thank you page.
15. WTE Book Confirmation Shortcode
[WP_TRAVEL_ENGINE_BOOK_CONFIRMATION]
This shortcode is added to the booking confirmation page.
16. WTE Advanced Search Form Shortcode
[Wte_Advanced_Search_Form]
This shortcode creates a search form.
17. WTE Search Shortcode
[WTE_Trip_Search]
This shortcode is added to the trip search page.
18. Enquiry Form Shortcode
[WP_TRAVEL_ENGINE_TRIP_ENQUIRY_FORM]
This shortcode allows you to display an Enquiry Form on various pages, posts, trips, and more.
Note: This new feature is implemented from version 5.6.8 of WP Travel Engine plugin
19. Trip Map Shortcode
[wte_trip_map]
This shortcode allows you to display an Individual Trip Map on the sidebar and anywhere you want to display a map.
Note: This new feature is implemented from version 5.6.8 of WP Travel Engine plugin