So, are you looking forward to adding a Trip Itinerary in an Accordion format?

WP Travel plugin offers a feature that allows you to display the itinerary description under the Trip Outline tab on the Single Trip page.

If you’re unsure how to add the description to display information about the itinerary on the single trip page, don’t worry.

You can refer to the following link : How to display itinerary description under the trip outline tab on a single trip page?

How to Add a Trip Itinerary in an Accordion Format?

With the recent updates to WP Travel (v8.8.0) and WP Travel Pro (v7.8.0), the plugin now includes a new hook that allows you to add an accordion-style display for the itinerary section.

To enable the accordion, you can add the following code in the functions.php file of your child theme or add it through code snippets.

For detailed information on creating a child theme, please refer to our KnowledgeBase.

add_filter( 'wptravel_enable_itinerary_toogle', function(){ 
  return true; 
} );

This will display the itinerary information in an accordion format, making it easier for users to navigate through the itinerary details.

How to Add a Trip Itinerary in an Accordion Format?

So by implementing the above steps, you can add a trip itinerary in an Accordion format precisely.