- This topic has 6 replies, 3 voices, and was last updated 5 years ago by
Support Team.
- AuthorPosts
- May 8, 2018 at 10:43 am #6340
shamsrobeen
ParticipantHi,
I would be grateful if you kindly let me know below answers:
a. How to set 4 itinerary per row? Do I need to use plugin short-code, if yes pls give me an example.
b. How to set multiple filters (trip_type+keyword) in Filter Widget short-code?Best Regards.
ShamsMay 8, 2018 at 10:44 pm #6344cyberspro
ParticipantNot to set the trip column to 3 or 4 you have to activate the child theme.
You can create the child theme manually or create the child theme using the plugin below:
https://wordpress.org/plugins/wp-child-theme-generator/
After activating the child theme in your child theme’s functions.php file paste below given code.
===============================================================================
function wp_travel_col_per_row($row) {
return 3;
}
add_filter( ‘wp_travel_itineraries_col_per_row’, ‘wp_travel_col_per_row’ );
===============================================================================You can change the no as per your requirement.
This helped me
May 9, 2018 at 6:35 am #6347Support Team
KeymasterHello @cyberspro,
Thank you for the help 🙂 .
Please find the response to your query below:
a. How to set 4 itinerary per row? Do I need to use plugin short-code, if yes pls give me an example.
Response: You can set four itineraries per row in trip archive page using the custom code but you have to make sure that you have set the layout to “gird”
So at first create the child theme of your existing theme and add below given code in your child theme functions.php.
As you require four items per row, change the no to 4.
b. How to set multiple filters (trip_type+keyword) in Filter Widget short-code?
Response: You can set multiple filters using the shortcode and for that, you have to add below given shortcode:
[wp_travel_trip_filters filters="keyword,trip_type"]
Hope this helps.
Let us know if you have any query further.
Thank you.
Best Regards!!
May 9, 2018 at 2:23 pm #6389shamsrobeen
ParticipantThanks! @cyberspro,
Thanks! @Support Team,Sorry, I have installed the WP Travel plugin in my child theme but not find the option “trip archive page” there. I have tried the function wp_travel_customize_itineraries_per_row() {return “4”; but no changes found while using [WP_TRAVEL_ITINERARIES type=itinerary_types]. It showing still 2 itinerary per row.
Regarding Filter Widget Shortcode, [wp_travel_trip_filters filters=”keyword,trip_type”] works perfectly. Many thanks and it helps me a lot!!!
If you kindly help me on displaying 3-4 items per row.
Have a nice day!
Warm Regards.
Shams.May 10, 2018 at 4:42 am #6392Support Team
KeymasterHello @shamsrobeen,
Actually, the code that we provided will not work for the trips that are listed with the shortcode.
To change the column for the trips that are listed with the shortcode add below given code in your child theme’s functions.php file.
function wp_travel_custom_fxn_shortcode_col_per_row() { return 4; } add_filter( 'wp_travel_itineraries_col_per_row', 'wp_travel_custom_fxn_shortcode_col_per_row', 20 );
Change the column as per your requirement.
Hope this helps.
Best regards!!
May 10, 2018 at 10:30 am #6405shamsrobeen
Participant@support.Team,
Great! Thank you so much! It is working.
Best Wishes.May 10, 2018 at 10:51 am #6406Support Team
KeymasterHello @shamsrobeen,
Glad we could help you.
If you have any issue further please let us know.
Also, we would really appreciate if you could help us by rating our plugin by following the link given below:
https://wordpress.org/support/plugin/wp-travel/reviews/
Thank you.
Best Regards!!
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.