shortcode

Homepage Forums WP Travel shortcode

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  Support Team 9 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7848

    amkocaine
    Participant

    is it possible to add col per row and view mode for each itenerary shortcode. for example : [WP_TRAVEL_ITINERARIES type=featured view_mode=list col_per_row = 4]

    #7849

    amkocaine
    Participant

    i mean [WP_TRAVEL_ITINERARIES type=featured view_mode=grid col_per_row = 4]

    #7859

    Support Team
    Keymaster

    Hello @amkocaine,

    First of all thank you very much for using the plugin.

    Currently, the shortcode provided by the plugin does not include the view mode parameter but column for the trips displayed using the shortcode can be managed adding the custom code via the child theme.

    To know how to create and activate the child theme please refer to below given link:

    http://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme please add below-given code in your child theme 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 );

    Also, to know further about the shortoce feature please refer to our official documentation given below:

    http://wptravel.io/documentations/user-documentation/shortcode/

    Hope this helps.

    Best Regards!!

    Have a good day 🙂 .

    #7860

    amkocaine
    Participant

    thanks for your prompt response. will this function modified the setting for all itinerary display? I just want to set view mode for each type of itinerary. I think that can’t do for me. anyway, I like wp-travel plugin very much, keep the good work.

    #7869

    Support Team
    Keymaster

    Hello @amkocaine,

    We are currently working on the shortcode grid/list settings and no. of cols settings for itineraries shortcode. The feature will be updated with the new version release ( v.1.5.4 ) today.

    With the new feature, you can st no. of cols and view mode for each shortcode individually as :

    [WP_TRAVEL_ITINERARIES view_mode="list"]

    [WP_TRAVEL_ITINERARIES col="4" view_mode="grid"]

    All the previous parameters are supported by the addition of “col” and “view_mode” parameter.

    Please wait for the update to get the feature.

    If you have any queries/request further, please feel free to write back to us.

    Best Regards !!

    #7880

    amkocaine
    Participant

    that’s terrific news. thank you for update this.

    #7893

    Support Team
    Keymaster

    Hello @amkocaine,

    Glad to know your request has been fulfilled. 🙂

    We are in continuous development of WP Travel and will be adding similar features to the plugin via future updates.

    If you have any queries/issues or requests further, please feel free to write back to us. We will definitely add some requested features to our future releases.

    Best Regards !!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.