Home › Forums › MapPress Support › Import a list of POI
- This topic has 8 replies, 2 voices, and was last updated 9 years, 5 months ago by
Chris.
-
AuthorPosts
-
August 30, 2013 at 7:39 am #13245
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
NickAugust 30, 2013 at 10:02 am #13247Hi 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.
September 7, 2013 at 8:28 am #13305Hi Chris,
Thanks … it is working like a charm!
I wish all plugins were this well supported!!
September 7, 2013 at 8:54 am #13306Hi 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
September 7, 2013 at 9:27 am #13308Hi 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
nickSeptember 7, 2013 at 9:50 am #13309Hi,
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.
September 7, 2013 at 10:09 am #13314Cool .. 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
nickSeptember 7, 2013 at 11:30 am #13319There’s a similar question here with an example that may help:
http://mappresspro.com/forums/topic/mashup-template-php-syntax
September 7, 2013 at 11:30 am #13320There’s a similar question here with an example that may help:
http://mappresspro.com/forums/topic/mashup-template-php-syntax
-
AuthorPosts
- You must be logged in to reply to this topic.