Home › Forums › MapPress Support › POI markers – default sort order?
Tagged: POI
- This topic has 7 replies, 4 voices, and was last updated 11 years, 5 months ago by
dvize.
-
AuthorPosts
-
November 20, 2013 at 7:53 am #13803
Hi,
Just upgraded to Pro and using bespoke map icons – great.
However when I set the map to show the POI as a list underneath it shows them in a random order – not the order that I set in the admin. (See: http://www.theoldwatchhouse.co.uk/map-local-area/)
How can I get the order to show properly?
November 20, 2013 at 8:23 am #13805Alphabetical sorting is applied by default. Use sort=”false” in the shortcode to turn it off:
[mappress sort="false"]November 20, 2013 at 8:36 am #13806Perfect!
December 19, 2014 at 3:06 pm #15477Hi.
How can I sort POI list in mashup? I need to sort them in the same way my posts with map are listed.
December 19, 2014 at 3:08 pm #15478Hi,
There’s a short section in the documentation about this that may help. There are also some examples in the WordPress page here:
http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
—
Queries to Set the Sort Order
MapPress by default sorts POIs by title.
You can turn off the default behavior using the shortcode parameter sort to “false”.
If the default sort is turned off, you can use the WordPress order and orderby parameters in queries to sort your posts by various fields including author, date, etc. For example to sort all posts by date, descending:
[mashup query=”orderby=date&order=desc” sort=”falseMarch 7, 2015 at 5:17 am #15646When i add initialopeninfo=”true” it brings the latest to the top. i have asked in another topic if it is possible to display the title of all the POI’s
March 7, 2015 at 5:20 am #15649Hi,
Yes, that setting opens the first POI in the list and brings it forward above the other markers.
It’s not possible to open all the POIs at once as you asked earlier, nor are there marker labels. However, if you hover a marker with your mouse, you’ll see its tooltip (its title) if you’ve enabled tooltips in the settings.
March 7, 2015 at 5:21 am #15641hello
I have one POI per post and want to order the layer they display as less important points are overlapping important points. I have attempted to code it so it displays the newest post at the top. The only way i have been able to reorder is to change the slug of the category which is a bad solution
[mashup width="99%" adaptive="true" sort="false" query="posts_per_page=-1&post_type=post&order=DESC&orderby=date" maptypeid="satellite" height="900"]
-
AuthorPosts
- You must be logged in to reply to this topic.
