You can list a tour or destination or activity in a different way. Here is the explanation of those ways:
Tour List:
You can list the tour/trip in 4 ways:
A. Block Method:
You can use gutenberg block to list the tour/trip package. Here are the available blocks of yatra plugin.
You can just put /yatra on editor then you will show the list of available blocks.
To show tour listing you can use Tour Block and it’s appearance & settings will be same as widgets and shortcodes too.
B. Shortcode Method:
You can use shortcode to list the tour/trip package. Here is the shortcode: [yatra_tour], click here for more information about yatra shortcodes.
Here is the frontend view of the shortcode method.
C. Widget Method:
You just need to pick Yatra – Tour List widget from appearance->widgets area and drag it to your sidebar ( sidebar might be different as per your theme). We recommend using fullwidth sidebar ( if any) so that your list design will more awesome. The design of the shortcode and widgets style will be the same.
D. URL Method:
You can add /tour on your homepage URL so that you will get all the tours from there. But if you change permalinks for a tour from settings->permalinks then you need to put your updated permalinks after home URL of your website.
You can change the permalinks from here: Settings->Permalinks:
By default tour base have tour text, but you can change as per your need. If you change it on the permalink then your tour listing url will be different. For example by default if you have tour base is “tour” then your tour listing link will be yourdomain.com/tour but make sure you have make your WordPress permalink structure to Post Name otherwise you might have different url for tour listing.
For example if you have domain name example.com then you need to put example.com/tour to list all tours. The design of this method will be different from the shortcode and widget method.
Filter option only available on this method only. You can filter as per destinations, activities, pricing etc.
Destination List:
You can list the destination in 3 ways:
A. Block Method:
Same like tour listing, destination listing also can be done via Blocks just search for destination block on your editor, this will show the destination block.
B. Shortcode Method:
You can use a shortcode to list the tour/trip package. Here is the shortcode:[yatra_destination], click here for more information about yatra shortcodes.
Here is the frontend view of the shortcode method.
C. Widget Method:
You just need to pick Yatra – Destination widget from appearance->widgets area and drag it to your sidebar ( sidebar might be different as per your theme). We recommend using fullwidth sidebar ( if any) so that your list design will more awesome. The design of the shortcode and widgets style will be the same.
Activity List:
You can list the activity in 3 ways:
A. Block Method:
Same like destination listing, activity listing also can be done via Blocks just search for activity block on your editor, this will show the activity block.
B. Shortcode Method:
You can use a shortcode to list the tour activity. Here is the shortcode: [yatra_activity], click here for more information about yatra shortcodes.
Here is the frontend view of the shortcode method.
C. Widget Method:
You just need to pick Yatra – Activity widget from appearance->widgets area and drag it to your sidebar ( sidebar might be different as per your theme). We recommend using fullwidth sidebar ( if any) so that your list design will more awesome. The design of the shortcode and widgets style will be the same.