Forum Replies Created
-
AuthorPosts
-
Hi Jim,
Sorry about that, it’s definitely still a ‘beta’.
Could you download version 2.38.3? I just released it today and it has fixes for a few bugs related to generating maps from the lat/lng fields.
If that doesn’t help, could you email me a login to your blog or a test blog? I’ll be happy to take a look for you and get it fixed right away.
Hi, if you – or anyone else – is still looking for this, styled maps are now included in the plugin. The new release is currently avaialable as a beta version (2.38.3 is the leatest right now).
Hi, if you’re on a shared server, it’s likely that someone else is also calling Google and has pushed your server over the query limit.
You can check if you’re over the speed limit or query limit by configured an ‘error’ field in the MapPress settings and checking the field value after you save a post that needs to be geocoded – it should write the geocoding error message there. If it’s a speed limit problem, let me know. But usually it’s the query limit.
As a workaround: there are some free geocoding services you can use to bulk geocode your data before you import. Or Google offers a ‘business’ solution with higher query limits (and you get your own API key so you don’t get penalized by someone else on a shared server). If you go with the latter, let me know – it’s easy to get MapPress working with the API key.
Hi, if you’re still looking for this (or anyone else), it’s possible in MapPress 2.38.2 and higher. There’s a javascript call you can make to open any POI. Here’s an example to open it by postid (assuming the POIs are linked to posts) for a map named ‘mapp0’:
mapp0.getPoiById(postid).Open();
A ‘template’ file is also available that can be modified to change how the POI list is displayed: “map_poi_list.php” – you can copy it to your theme directory and change it there.
Hi,
In reference to your first question YES, you can create separate widgets for different pages.
I use the plugin ‘widget logic’ for this purpose. It’ll give you a conditional field so you can say “show widget A for the main page, but widget B for all other pages”.
For the second part: the plugin itself doesn’t have a ‘show nearby posts’ function. But you would need to come up with some criteria for ‘nearby’ posts – perhaps you could all posts in the same category and then zoom the map in to show only a 5-mile radius around the original post?
Hi,
Sorry, that’s not something supported by the plugin. URLs often do look funny, and passing the whole string is the way Google normally does it.
I have two ideas if you really want to change it:
1. If you set the address to “lat,lng” that may do what you want in the URL – but then you’ll also see “lat,lng” in the directions form.
2. Another option might be to just put your own directions link into the POI body (assuming you’re opening a new window at Google). Just disable the normal directions (there’s a setting and shortcode parameter for that). Then enter the link with the lat/lng instead of the address. You can get an original link to modify by just copying one that MapPress generated.
Hi, that query actually looked OK to me. What result are you getting, an empty map?
If so, you could try a few things:
1. Add “posts_per_page=-1″ – it may be the map is showing the first 5 posts only, and they don’t have locations:
show_query=”post_type=portfolio&category_name=abokiste&posts_per_page=-1”
2. Go to your ‘permalinks’ menu in the WP admin and save – this will ‘flush’ your permalinks, they can get out of sync surprisingly easily
3. See if the query is working without MapPress. For example, enter these URLs:
http://mysite.com/category/abokiste
Hi,
Sure, I think you can achieve this using 2.38.2. I’ll try to help but I don’t know very much about how ACF saves its data.
MapPress works off ‘standard’ WordPress custom fields – the ones you see if the post edit screens by default.
I think ACF actually does save its data to normal custom fields but I’m not sure. I’d suggest setting up MapPress first without ACF, then adjusting it to use ACF fields.
To generate the maps: there are settings in the MapPress ‘settings’ screen that allow you to just specify the custom fields that contain an address or lat/lng for each post.
Once you set them up MapPress will generate a map for each post when you publish it. The process is described in the documentation but let me know if you’ve already read that and have questions.
I don’t know how to read the ACF fields for the template – that’s really more of a question for the ACF author – but my guess would get you could just use the regular get_post_meta() function in WordPress? Does that not work for ACF?
To modify the template, you copy it to your theme directory and modify it (file ‘map_poi.php’. If you need a sample template with a get_post_meta() call in it let me know.
I hope that helps…
June 29, 2012 at 6:45 am in reply to: How to add maps using custom fields and get_meta_data () #9767Hi, there are some simple examples in the documentation of generating a map using PHP:
http://mappresspro.com/mappress-documentation
However, if you already have your address or lat/lng data stored in custom fields, MapPress can just generate the maps automatically by geocoding those fields.
If you’d like to try it, version 2.38.2 has better geocoding capability, and it also has a ‘template’ file you can use to customize the POI contents:
http://mappresspro.com/mappress-2-38-2-beta-available
Great, I’m glad you got it working! Let me know if you have other questions.
Hi,
What code did you use to remove the shortcode from the main page (your first question)? That one seems to be working.
This is more of a theme question than something for MapPress, but I would be happy to try to help you.
Do you know what PHP template file the theme is using to display the results? If so, please send me an email with that file and also the theme’s ‘functions.php’. I’ll take a look for you and post back here.
My email: chrisvrichardson at mappresspro.com.
Hi Mark,
Thanks for letting me know. I’ve re-uploaded the 2.38.1 zip file. If you like you can download it again and re-install it.
I’m assuming that since this is just a warning it’s not impacting the functionality of the plugin but let me know if I’m wrong.
Also: you probably already know this, but you can turn off warnings if you don’t need them on – there’s a setting ‘wp_debug’ in your wp-config.php file and there are error settings in the php.ini file.
Hi,
Ok, I understand now.
Does this still happen if you are using the twentyeleven theme? Or only with your custom theme?
—
I think the default excerpt function normally does remove shortcodes using the WP function strip_shortcodes(). And MapPress tries to suppress maps in excerpts. But some themes use their own excerpt function and depending on how it’s coded MapPress can’t detect it.
In that case you must change your excerpt function to disable the ‘mappress’ shortcode.
You can ask the theme author about how to do this. Or you can usually find the custom excerpt function in the ‘functions.php. file and change it.
It depends on your theme, but there are also many suggestions about how to fix this problem on the web – for example:
http://www.mrmuh.com/2012/01/wordpress-remove-shortcodes-from-excerpt-on-the-front-page/Hi, I checked the link you sent, but I’m not sure I understand.
Where do you want the map to appear? At the top? It’s too wide for the column.
The theme is applying CSS ‘float:left’ to everything to make the columns.
What happens if you create the page *without* the columns?
Some things to try:
1. Put the map shortcode on its own line, if you haven’t already. It should look like ths in the html editor:
<p>
shortcode
</p>
2. If you want the map to NOT float, you can apply some CSS before or after it:
<div style=’clear:both’></div>
3. You can check the CSS by using IE debugging tools or Firebug for Firefox
Did you mean you put it into a page as a shortcode, or you put it into the page template?
When show=”current” the map will show the contents of the current WordPress query. WordPress sets it up automatically based on the arguments in the URL. For example the main page is usually a query showing the index of posts, or if you enter http://www.myblog.com/category it sets up a query for posts in that category.
Looking at that URL, my guess is that the WP query is just to display that one page.
Are you using a custom query inside the template for the list of facilities?
If so – try setting the mashup to exactly the same query instead of “current”.
-
AuthorPosts
