- This topic has 11 replies, 2 voices, and was last updated 3 years, 10 months ago by
Support Team.
- AuthorPosts
- July 13, 2019 at 6:02 am #17919
maxbuzz
ParticipantThe 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 0If you select America https://tinyurl.com/y38wcpct
it shows 0If you select Asia https://tinyurl.com/yxojq9oj
it shows 1If you select India https://tinyurl.com/y5v8psxo
it shows 7As you would see none of them show the right number.
Please adviceJuly 15, 2019 at 4:17 am #17953Support Team
KeymasterHello @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.
July 15, 2019 at 7:56 am #17964maxbuzz
ParticipantI 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
July 15, 2019 at 11:29 am #17975Support Team
KeymasterHello 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.
July 15, 2019 at 11:53 am #17979maxbuzz
Participanti can send screenshots of any page that you want
July 15, 2019 at 12:18 pm #17985Support Team
KeymasterHello @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!
July 15, 2019 at 4:51 pm #17993maxbuzz
ParticipantHi,
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.July 16, 2019 at 5:34 am #18006Support Team
KeymasterHello @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.
July 16, 2019 at 11:14 am #18014maxbuzz
ParticipantHi,
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 similarJuly 16, 2019 at 11:41 am #18016Support Team
KeymasterHello
Thank you for your valuable suggestions.
We will surely consider these points in the future updates of the theme.
Regards!
July 17, 2019 at 6:20 am #18034maxbuzz
ParticipantHi,
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.July 17, 2019 at 10:59 am #18045Support Team
KeymasterHello @maxbuzz,
Currently, it is not possible as small code snippet won’t work here.
Hope you understand.
Thank you.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.