Error in no. of destinations displayed

Homepage Forums WP Travel Error in no. of destinations displayed

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

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17919

    maxbuzz
    Participant

    The destinations added in the do not show up properly in the section “post filter” on the homepage sections when using theme “Travel log”

    Here is the screenshot of the destination list
    https://tinyurl.com/yywww789
    https://tinyurl.com/y5ncv3on
    As you would see there are
    4 destinations in Africa,
    2 in Americas,
    5 in Asia and
    12 in India,
    which should a total of 23 destinations.

    Now if you select all https://tinyurl.com/yyb6mpk4
    it shows 9
    If there is a limit of max no. how to change it?

    If you select Africa https://tinyurl.com/y2wgcmw5
    it shows 0

    If you select America https://tinyurl.com/y38wcpct
    it shows 0

    If you select Asia https://tinyurl.com/yxojq9oj
    it shows 1

    If you select India https://tinyurl.com/y5v8psxo
    it shows 7

    As you would see none of them show the right number.
    Please advice

    #17953

    Support Team
    Keymaster

    Hello @maxbuzz,

    We would like to apologize for the trouble.

    But when we inspected the issue in our side in the recent version of the theme, we were unable to find such an issue.

    So we need to check your specific setting and since your site is not live yet, we are unable to inspect the issue further.

    Once your site is made live please inform us so that we can fix the issue for you.

    Thank you.

    #17964

    maxbuzz
    Participant

    I think this post also speaks about a similar problem https://wptravel.io/support-forum/topic/my-trip-in-post-filter-disappear-after-i-post-another-trip-location/, so I guess the problem does exist across different installs.

    We have the latest version installed

    #17975

    Support Team
    Keymaster

    Hello maxbuzz,

    Thank you for the info about the setting, but since it is the site-specific setting issue, we need to inspect your site further properly and provide the possible fix.

    Hope you understand.

    Thank you.

    #17979

    maxbuzz
    Participant

    i can send screenshots of any page that you want

    #17985

    Support Team
    Keymaster

    Hello @maxbuzz

    Screenshot wont help to diagnose the problem precisely, since we need to inspect the page and make a temporary changes in the dev tools to see if the issue is there in core file or not.

    Screenshot in that manner won’t give us a clean environment to inspect.

    Once going live, please report us and we will inspect further.

    Hope this clears your confusion.

    Regards!

    #17993

    maxbuzz
    Participant

    Hi,

    I have figured out what causes the problem.

    If you use the horizontal or vertical filters and filter by location they give the right result.
    If you use a shortcode in a page even that gives the right result, even with multiple locations.

    In Customize -> Home Page Sections -> Post Filter Section you select single locations it works well.

    The problem is that it cannot display more than 9 trips in total. Once your total trips cross 9 it will randomly not show trips under some location.
    I think you have applied a max. no of trips to be displayed under ‘ALL’, this is curtailing the collection of trips to 9 instead of limiting display of trips to 9 under each location.

    #18006

    Support Team
    Keymaster

    Hello @maxbuzz,

    Regarding the trip display setting, you do not have to worry as the theme has already provided the filter using which you will be able to increase the no.

    So, for this go to your child themes functions.php file and add below given code.

    function wp_travel_post_filter_post_limit(){
    	return 15;
    }
     add_filter ( 'travel_log_posts_filter_posts_limit' , 'wp_travel_post_filter_post_limit' );

    Set the no as per your requirement.

    Hope this helps.

    Thank you.

    #18014

    maxbuzz
    Participant

    Hi,

    This works but I would still consider this a temporary patch.

    This would still qualify as a bug as its illogical to assume that any tour company would have max 9 or any arbitrary no. defined by a developer as the total number of tours.
    1. In the current system whatever no. you put there is a risk that some trips randomly dont show up because the total number has gone over your preset limit. Also there is no way to figure out which trips wont appear. Some locations will show long lists and some locations none.
    2. if you set the number large it will take a long time for your home page to load.

    The correct and more elegant way would be to provide paging OR infinite scrolling after a user-defined limit for the number of trips per location.
    eg. If I have 150 tours and I set 9 as a page size. Now for any of the locations where number crosses 9 paginations will appear. Also there has to be a meathod by which the tours appear (sorted) in the list, sorted either by departure date or price or date of creation or similar

    #18016

    Support Team
    Keymaster

    Hello

    Thank you for your valuable suggestions.

    We will surely consider these points in the future updates of the theme.

    Regards!

    #18034

    maxbuzz
    Participant

    Hi,

    Currently the set of trips drawn up from the latest based on the trip ID.
    Is it possible to give small function to run in the child them that could pick the set of trips based on the last updated trips. This way could give some flexibility in deciding what trips show up, and none of the locations are left empty while some are overfull.

    #18045

    Support Team
    Keymaster

    Hello @maxbuzz,

    Currently, it is not possible as small code snippet won’t work here.

    Hope you understand.

    Thank you.

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

You must be logged in to reply to this topic.