Forum Replies Created
-
AuthorPosts
-
Hi, please see the FAQ, you’re most likely missing the wp_footer() call in your theme:
http://mappresspro.com/mappress-faq
If that doesn’t help, let me know.
Hi,
I think you can just enter the ID of the page in the widget query like this:
page_id=1234
Here’s a link to the query documentation from WordPress if it helps:
Hi,
Sorry, no, that’s not possible. But if it helps, you can enter locations by address rather than using lat/lng values, if that’s what you’re doing – just configure the address fields in the MapPress ‘geocoding’ section.
Hi,
I’m sorry, but I don’t know what that plugin does. One thing that might help: you can try running the query in your template, without MapPress. That might help to determine if the role plugin is modifying the query somehow.
Here’s a snippet of PHP that’ll show a query (you can replace it with the query from your mashup):
<?php $wpq = new WP_Query('post_type=post&posts_per_page=-1'); echo print_r($wpq, true); ?>Hi,
If you’re using the ‘geocoding’ fields in the settings, you can specify a custom field to use for the icon in automatically-generated maps. You could set that field value when you save your form. Or, if you want to use some logic to do it there’s a PHP filter ‘mappress_poi_iconid’ you could use to set it by post type, etc.
Hi,
1) The error comes from MapPress because it issues a database command to check for a table (see #2). The error is just a symptom of the real problem – which is that the server lost its connection to the database – it’s not an indication that the error has anything to do with MapPress or that specific table.
1b) Probably
2) WordPress loads every plugin for every page. When MapPress is loaded it checks that its table exists, whether or not it’s displaying a map. That’s why you see an error on pages without a map.
Hi,
I’m not sure I can help resolve that problem, but I can give you some background info.
When MapPress is loaded it checks that its tables are present and, if not, it creates them (even if there are no maps to display). Apparently when it checked, the database didn’t respond.
I believe the ‘MySQL has gone away’ error occurs when the server has lost its connection to the database or the database is very slow in responding.
I assume that could be caused by a server problem or a database issue. Corrupted tables sounds plausible but it’s too bad MT wasn’t able to help you pinpoint it more exactly.
Here’s the MySQL manual page for the error in case it’s helpful:
http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
Increasing the timeout values might fix the error but I’m not sure they would speed things up. If you think it’s corrupted tables you could try rebuilding or repairing the database:
http://dev.mysql.com/doc/refman/5.0/en/rebuilding-tables.html
Hi, sorry but no – the plugin doesn’t support saving a map in street view. It can only be opened by dragging the ‘peg man’ onto the map.
Hi, what version of the plugin are you using? If you’re not on 2.40.3, then please upgrade. If you’re already on the version, send me a login and the URL of that page and I’ll take a look.
Hi, you can’t put shortcodes in the POIs but you can create a map and then display it elsewhere in the site, e.g. [mappress mapid="1234"].
The geocoding functionality is most useful if you already have your data stored somewhere, for example if you have a custom form with an existing address field. I wouldn’t bother for 8 locations.
I’m not sure how the site is meant to look but it sounds like you would want 8 separate posts, with 1 location per post. Then you can use the shortcode to reference those 8 maps separately or a mashup to display them together.
A URL for your map would help so I could see it!
What you describe with some open and some closed sounds like a timing problem in which the map is still centering while they’re being opened.
Your POI that zooms to the wrong area: I don’t know, but check the individual map for it, perhaps the location saved for it doesn’t correspond to the title (for example you can title it “New York City” but put the marker in the middle of the ocean.
You asked about other ways to open POIs. You can also open them using javascript – for example after document ready. There’s a javascript example here:
http://mappresspro.com/mappress-documentation#toc-open-or-zoom-a-poi-using-javascript
Hi,
Do you mean you have existing address values in your posts? If so, setting an address field in the MapPress configuration doesn’t retroactively create maps for the existing posts.
You can update the posts by viewing the list of posts in the WordPress admin and then using ‘bulk actions’ -> ‘edit’ and clicking the ‘update’ button. You can use the screen settings to view (and update) hundreds of posts at once that way.
If you want to use PHP you can loop through your existing posts and trigger either the ‘save_post’ action or ‘mappress_update_meta’ action. You can try the code below but be careful – if you add this to your functions.php, for example, it’ll run on every view of your blog so add it, create your maps and then remove it with FTP – and make a backup first:
$wpq = new WP_Query('post_type=post&posts_per_page=-1&fields=ids'); foreach($wpq->posts as $postid) do_action('mappress_update_meta', $postid);Hi,
If you configure an ‘address’ field in the MapPress ‘geocoding’ section, MapPress should automatically create a map when the post is published or that field changes.
If you don’t see that map, check that the field is actually populated – often this question comes up because people are using a custom fields plugin or theme that doesn’t store the data in a custom field.
To tag posts I’d suggest using tags or categories. There are examples in the documentation about how to query by tag/category. You can test your query with the mashup shortcode, and one it’s working just enter that same query into the widget ‘query’ field to get it in the widget.
If that doesn’t help please be more specific with your question and, if possible send a login to the blog using the contact form.
Hi,
No, but there’s an ‘initialopeninfo’ parameter that lets you open the first poi or one of your choice (they’re numbered starting at 0). Maybe you can just put a shortcode on each target page with that parameter set to the right poi?
For example this should open the 3rd poi:
[mappress initialopeninfo="2"]
Hi,
When you choose ‘current’ for the widget it should just show exactly what’s in the current page query.
This could be a MapPress bug, but more often the problem is that the theme or another plugin is modifying the query.
There are two things to try:
1. Check for conflicts – switch to the ‘twenty twelve’ theme and deactivate your other plugins. Do you see the same result?
2. Output the query – add this to the sidebar template file to print the current query:
<?php global $wp_query; print_r($wp_query->posts); ?>
If this issue persists after trying the above, please feel free to send a login and I’ll take a look on your site.
-
AuthorPosts
