Import a list of POI

Home Forums MapPress Support Import a list of POI

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #13245
    LakesMarketing
    Participant

      Hi Chris,

      Is it possible to import a list of POI’s into a map, with the icon, title, and html content (e.g. image and text)?

      If so, is it then possible to update the POI’s by importing over the top of a map’s POIs?

      I’m thinking maybe this might involve using both your CSV Import and Mappress plugins?

      Thanks
      Nick

      #13247
      Chris
      Keymaster

        Hi Nick,

        Yes it’s possible. You’ll need to create one post per location (you can combine the posts into a single map with a mashup). Then you can import the posts or overwrite them with TurboCSV or a similar importer.

        You can configure custom fields in MapPress for the title, iconid, and content. For the image I’d suggest just using the post featured image.

        #13305
        LakesMarketing
        Participant

          Hi Chris,

          Thanks … it is working like a charm!

          I wish all plugins were this well supported!!

          #13306
          LakesMarketing
          Participant

            Hi Chris,

            Quick question … would this shortcode work to display posts of category AND tag?

            [mashup query="post_type=product&product_category_name=caringorms&product_tag=luxury" width="100%" height="350" adaptive="true"]

            So to show all posts with cat=cairngorms AND tag=luxury

            Thanks

            #13308
            LakesMarketing
            Participant

              Hi again,

              Just had another thing pop up, related to filtering on CAT AND TAG

              On this page (on our staging site)

              http://nptravel(dot)staging(dot)wpengine(dot)com/product-category/lake-district/

              If you replace the (dot) with . to make the link work.

              If you click on the collection (tags) to filter the search you will see the map stays the same as it’s a fixed piece of shortcode used. The ideal would be to get the map to refesh with the selection.

              I have no idea how to even begin approaching this … but just in case you knew of a way?

              Thanks
              nick

              #13309
              Chris
              Keymaster

                Hi,

                That should work. WordPress doesn’t document the query string very well in their codex but it does work.

                You should able to do things like:

                query="mytax1=a"
                query="mytax1=a+b"   (a and b)
                query="mytax1=a,b"   (a or b)
                query="mytax1=a&mytax2=b"   (mytax1 = a and mytax2 = b)

                Remember to use slugs for the taxonomy name and term values.

                #13314
                LakesMarketing
                Participant

                  Cool .. this has done the trick:

                  [mashup query="product_cat=lake-district&product_tag=luxury" width="100%" height="350" adaptive="true"]

                  Thanks

                  Please can I ask just one more thing .. then I will leave you alone!

                  On this page (on our staging site)

                  http://nptravel(dot)staging(dot)wpengine(dot)com/product-category/lake-district/

                  If you replace the (dot) with . to make the link work.

                  If you click on the collection (tags) to filter the search you will see the map stays the same as it’s a fixed piece of shortcode used. The ideal would be to get the map to refesh with the selection.

                  I have no idea how to even begin approaching this … but just in case you knew of a way?

                  Thanks
                  nick

                  #13319
                  Chris
                  Keymaster

                    There’s a similar question here with an example that may help:

                    http://mappresspro.com/forums/topic/mashup-template-php-syntax

                    #13320
                    Chris
                    Keymaster

                      There’s a similar question here with an example that may help:

                      http://mappresspro.com/forums/topic/mashup-template-php-syntax

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