Forum Replies Created
-
AuthorPosts
-
April 22, 2013 at 7:01 am in reply to: Can't use wp_footer on one page where I need a map. Any work-arounds? #12334
Hi, try:
echo $mappress->l10n();
April 22, 2013 at 6:35 am in reply to: Can't use wp_footer on one page where I need a map. Any work-arounds? #12331Hi,
I assume you just copied over the script tags? I forgot about mappl10n, though – you can output it by calling $mappress->l10n();
I still think it would be better to just deuque/deregister the scripts you don’t want, though – that way if MapPress changes you won’t need to re-do the checkout page.
April 22, 2013 at 5:14 am in reply to: Can't use wp_footer on one page where I need a map. Any work-arounds? #12329Hi,
I don’t think WordPress offers any way to output only specific queued scripts.
You could take a look at a normal page with a map and just copy the google/mappress script tags into your checkout page template. Call the MapPress print_maps() function to output the map data after those tags:
<?php
global $mappress;
$mappress->print_maps();
?>Perhaps there’s a way to conditionally not load the other scripts on the checkout page? Or you could dequeue them before the wp_footer() call:
http://codex.wordpress.org/Function_Reference/wp_dequeue_script
April 21, 2013 at 5:41 pm in reply to: Can't use wp_footer on one page where I need a map. Any work-arounds? #12320Hi,
Just to be clear, wp_footer() only loads scripts in the footer. It doesn’t actually display the blog footer – that’s done by get_footer() instead.
Were you thinking of get_footer()?
If that’s not the problem and you really can’t call wp_footer(), then you could possibly just trigger action ‘wp_print_footer_scripts’ instead, e.g. do_action(‘wp_print_footer_scripts’). That calls the internal function to queue all the scripts.
Hi,
This is a bug, thanks for reporting it. The plugin isn’t saving the shadow when it checks the icon directory. I’ll release a new version to fix it ASAP.
April 19, 2013 at 3:36 am in reply to: Geocode problems with using custom fields city & state #12299Hi,
For anyone else looking: this is not a MapPress issue. The form plugin was storing the wrong values in the custom fields.
@esscot: I think this is now resolved, but let me know if not.
Hi, feel free to use the contact form to send a URL.
But I don’t think this is something I can fix via MapPress. My guess is that it’s a Google issue. What happens if you click a landmark on this map, can you close the infowindow?
https://google-developers.appspot.com/maps/documentation/javascript/examples/full/map-simple
April 18, 2013 at 6:22 am in reply to: Geocode problems with using custom fields city & state #12290Hi, you can use the contact form.
Could you also please try entering those fields manually and publishing the post?
April 18, 2013 at 5:59 am in reply to: Geocode problems with using custom fields city & state #12288Hi,
That sounds strange. Try this: view that post and check the values in the custom fields. Then enter “newburgh” in one and “in” in the other and publish the post.
Does the map show the same location? I just tried it – but I got the center of Newburgh, IN, as expected.
Is it possible some other field value is getting set and interfering with the address?
Please send a login and I’ll take a look at your site. Or, see if you can replicate the problem for me on a demo site:
Hi, that actually sounds like a bug in the Google API – I see someone has a ticket on in their bugs database but it’s 8 months old:
Do you have an example URL, and for which Android version do you have the problem?
Hi,
The documentation mentions ‘post__in’. I don’t think ‘page_in’ exists.
If you want to get specific pages this should work:
post_type=page&post__in=1,2,3,4
I think it also works this way, without specifying any post_type:
post__in=1,2,3,4
@amadex, it’s hard to say without more info, but usually this happens when you’re using draft/private posts that can only be seen while logged in (WP adjusts the query based on your login status).
Probably the easiest thing is to just send me a URL and login, and tell me where to find your mashup.
Hi, you’re correct, the data is saved in mappress_maps – but it’s saved as serialized obejcts, so it’s not easy to implement searches by lat/lng. You can read each map individually and unserialize it like this (where $mapid is the map you want):
Mappress_Map::get($mapid);
Hi,
Sometimes it looks like the wp_footer() call is there, but it doesn’t actually run for a particular post/page.
Try putting this right above it to see if it’s actually output:
<?php echo “FOOTER HERE!”; ?>
Hi,
Here’s how to test the basic setup:
- Make sure you’ve enabled your custom post type for maps and configured your address field in the geocoding settings
- Create a new post using the normal WordPress post editor (not a custom field plugin, etc.)
- Manually add the ‘address’ custom field (try ‘NYC’ for New York) to the post
- Publish the post
You should see a map named ‘automatic’ with a marker for New York.
If that doesn’t help, try deactivating your other plugins and switching to the 2012 theme for a moment, in case there’s some kind of conflict. And if you’re still stuck after that, please feel free to send a login with the contact form and I’ll take a look at the blog.
-
AuthorPosts
