Archive Map + Random sorting Problems
This topic contains 8 replies, has 3 voices, and was last updated by Kiran 6 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: archive map, Search Results, tags
-
AuthorPosts
-
November 26, 2018 at 8:28 pm #456008
Hello,
We need our directory set up so that when people go to a category page or a tag page, the map shows only the results in that category or tag. This seems to be impossible though, as when we try to use the Archive map, it only will display the page of results being shown, instead of all of the results in that category/tag/place/search. For example, if we’re in ‘/places/category/food’, or we do a search, if page two only has one more result, the map only shows one marker. I believe this should show all the markers for the search results regardless of what page of results you’re on? Using the ‘all_posts=”1″‘ section in the shortcode seems to change nothing.There’s also an issue with how the “random” sorting works. When you use that sorting system, it randomizes the results again every time you go to the next page. This makes this sorting setting pretty useless. We wanted to use this as a way to not give any place favoritism by always putting it at the top, but as it is, when people are browsing through the pages they’ll end up just seeing the same things or never seeing some results at all.
November 27, 2018 at 12:31 pm #456061Hi Benjamin,
1. That should not be the case and i just tested on my site, i did find that the root CPT page like /places/ did not work but cat and tags did. If you can provide wp-admin details in a private reply i will take a look at ur site.
2. I have added a 24 hour seed that will keep the random sort for that time to allow paging, this will be in the next release.
Thanks,
Stiofan
November 27, 2018 at 5:21 pm #456106This reply has been marked as private.November 28, 2018 at 12:08 pm #456178You had not added the param to show all posts to the shortcode, i added it, i have also added the patch to make it show all listings on the root CPT page, i also added a default image to help with layouts, you can change/remove it from GD>Design settings.
Thanks,
Stiofan
November 28, 2018 at 6:24 pm #456233That’s really cool that you added that, thanks a lot, but it’s only solved the problem on the categories and cpt pages.
The search results still only show what’s on each page, the tags page now shows that there’s no records found on the map, and the country pages don’t properly move to the next page.
You can see this last one by setting the sorting order to newest or alphabetical, then clicking the pagination at the bottom. Despite the fact that the url says /page/2, the results are the same as the first page and the pagination still has the number 1 bolded as if you’re on the first page.Also, adding new GD posts is broken, if you try it out for yourself you can see what I mean. The category and location doesn’t save correctly and there’s no permalink.
December 3, 2018 at 5:39 pm #456942I have been testing some settings trying to fix these issues, and it’s clear that the all_posts=”1″ shortcode just doesn’t work.
The categories pages show all results. That’s it, the CPT page doesn’t, the search results don’t, countries pages don’t, and the tags pages don’t even display anything on the map.
If we can at the least get this working on the searches that would be great.Countries pages don’t display past page 1 in the listings area still. I have no idea why this is happening.
We fixed the issue with adding new posts by rolling back the site, so that one’s cleared up.
December 4, 2018 at 5:30 pm #457110We just released an update for GDv2, give that a try and if you still have issues let me know and i’ll look into it.
Thanks,
Stiofan
December 5, 2018 at 8:43 pm #457257Thank you so much! It seems to be working great now on the CPT pages.
The search pages using the archive map still aren’t showing all posts though.December 8, 2018 at 7:31 am #457630Hello Benjamin,
We have fixed this and fix will be in next release.
If you want patch then it available here: https://github.com/AyeCode/geodirectory/commit/16f70f701d795e2c3c2af4475eb4897f9a989c72
It will display all markers for searched category if all_posts settings allows.Kiran
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket