Home › Forums › MapPress Support › Sorting POIs within a mashup map
- This topic has 3 replies, 1 voice, and was last updated 1 month, 1 week ago by
Chris.
-
AuthorPosts
-
July 17, 2023 at 4:42 pm #20346
John Charlton
ParticipantWith version 2.87.4 my POI’s in my mashup map at https://pecstudiotour.com/map-of-studios/ are no longer in order as they had been in the previous version.
I have the Sort option in Settings set to Title.
I had previously placed numbers in front of my Map titles to sort them within the mashup map, but this no longer works.
It is vital that the order be sorted to match our printed brochure.
Please advise how this can now be accomplished.
I currently call up the mashup using [mashup query="post_type=page"]
I tried modifying that to [mashup query="post_type=page&order=asc"] but it had no effect.
The POI within the mashup seem to be ordered by last added. There is a sort by switch under MapPress > Maps, but it only gives the options of Map ID (Down) and Map ID (Up). There is no choice for Alphabetical. This seems only to control the order the maps are displayed on that page anyway, and has no effect on the mashup POI display.
Please help
Thank YouJuly 17, 2023 at 4:46 pm #20350Chris
KeymasterHi John,
Looks like a bug, introduced with distance sorting in a recent released. I think it’s fixed. Could you send a login so I can test the new version for you?
If you prefer to use the query parameters, the syntax is:
[mashup query="post_type=page&orderby=title&order=asc"]July 17, 2023 at 7:58 pm #20352Chris
KeymasterHi,
I’ve gone ahead and published the update as 2.87.5. Please let me know how it works for you.
July 18, 2023 at 9:50 pm #20353John Charlton
ParticipantThanks Chris. That worked fine. The problem is fixed.
Thanks also for the short code. I have set the page to use that, but the new version fixed the problem without any change to the shortcode.
Thanks for the quick response.
August 16, 2023 at 8:01 am #20393John Charlton
ParticipantHi Chris. Sorry to report that Version 2.88.3 has brought this issue back.
Using [mashup query="post_type=page&orderby=title&order=asc"] as prescribed above does not solve the problem.
It now ignores the numbers which precede the artist’s names and sorts the poi’s alphabetically.
The latest issue was discovered on https://northumberlandstudiotour.ca/map/
August 16, 2023 at 8:02 am #20397Chris
KeymasterHi John,
I see the sort option is set to “true”, which isn’t valid. Please go to the MapPress settings page, set the sort to “title” and save.
If that doesn’t help, please send a login. Both sorting methods work on my test site, so I’ll need to trace it to see why yours is different.
Thanks!
August 21, 2023 at 9:58 pm #20407John Charlton
ParticipantThanks Chris. That fixed it. In fact there was no selection made in the settings previously, but selecting title solved it.
-
AuthorPosts
- You must be logged in to reply to this topic.