POI markers – default sort order?

Home Forums MapPress Support POI markers – default sort order?

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #13803
    jockturner
    Participant

      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?

      #13805
      Chris
      Keymaster

        Alphabetical sorting is applied by default. Use sort=”false” in the shortcode to turn it off:

        [mappress sort="false"]

        #13806
        jockturner
        Participant

          Perfect!

          #15477
          sitiroma
          Participant

            Hi.

            How can I sort POI list in mashup? I need to sort them in the same way my posts with map are listed.

            #15478
            Chris
            Keymaster

              Hi,

              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=”false

              #15646
              dvize
              Participant

                When 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

                #15649
                Chris
                Keymaster

                  Hi,

                  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.

                  #15641
                  dvize
                  Participant

                    hello

                    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"]

                    http://australianmap.net/

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.