Per row itinerary?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6340
    shamsrobeen
    Participant

    Hi,

    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.
    Shams

    #6344
    cyberspro
    Participant

    Not 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

    #6347
    Support Team
    Keymaster

    Hello @cyberspro,

    Thank you for the help 🙂 .


    @shamsrobeen
    ,

    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.

    http://wptravel.io/documentations/developer-documentation/filter-hook/wp_travel_archive_itineraries_col_per_row/

    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!!

    #6389
    shamsrobeen
    Participant

    Thanks! @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.

    #6392
    Support Team
    Keymaster

    Hello @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!!

    #6405
    shamsrobeen
    Participant

    @support.Team,

    Great! Thank you so much! It is working.
    Best Wishes.

    #6406
    Support Team
    Keymaster

    Hello @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!!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.