Forum Replies Created
-
AuthorPosts
-
Hi Dan,
I’m glad you got it fixed! The Google Maps API only allows itself to be loaded once, so if the other plugin is loading that API you would need to disable it in order to run both plugins.
May 2, 2013 at 4:15 am in reply to: Add map shortcode to a template's tabbed content … not working #12433You can also blame the browsers, which report zero size for hidden elements… 🙂
May 2, 2013 at 3:38 am in reply to: Add map shortcode to a template's tabbed content … not working #12430Hi, it’s probably the Google API. Please see here for some more info:
Thanks, just let me know if you need any help with it.
Hi, the Google API doesn’t work if the map is initially in a hidden container. There’s some more info in the FAQ:
http://mappresspro.com/mappress-faq
Hi,
I’m sorry, I don’t know how to emend the rule. Maybe the security plugin folks can tell you?
If it blocks access to ‘admin-ajax.php’, no front-end ajax calls will work (in this case the mashup).
Hi,
I think the redirection is still occurring, perhaps the theme is active at the main site?
Try this – it should return “0” but it returns the not found page from the main theme:
http://dewandelaar.nl/nz/wp-admin/admin-ajax.php
You could also try re-saving your .htaccess (go to the blog settings and save your permalinks, it’ll refresh it).
Hi, something in your blog is preventing the query from running – it’s directing the ajax query to a ‘page not found’ error.
This is usually caused by a plugin or theme function that redirects the URL.
Try deactivating your other plugins and switching to 2012. You can reactivate them one by one to find the error.
You can’t, but you can modify the layout template to place the POI list wherever you like. The file is ‘map_layout.php’ and there’s some info in the documentation about how to copy it to your theme.
Hi, I’m glad you got it figured out and thanks for the update.
Using 1 map will save you 1 ajax call – about half a second. But it is less flexible, for example if you want to add custom fields, featured images, etc. So I would always recommend using 100 separate posts.
Please try the 2012 theme with all other plugins deactivated and let me know if that works.
If it does, then check that your theme is calling wp_footer() – that’s where the javascript is loaded.
Hi, the MapPress javascripts aren’t on the page (you should see mappress.min.js). Something is probably removing them.
Are you using some kind of minifying plugin? Try deactivating all plugins and switching to 2012, then reactivate to find the problem. Also, please check the FAQ:
Hi, try adding ‘echo’ before do_shortcode:
$category_id = get_query_var('cat'); $shortcode = '[mashup query="cat=' . $category_id . '&posts_per_page=-1"]'; echo "Map of shortcode $shortcode" . "<br/>"; echo do_shortcode($shortcode);Hi,
It’s possible but you’ll need some PHP to do this. You’ll need to get the category first (you can search wordpress.org for solutions to that). Then run the mashup shortcode.
I haven’t tested it but for example: this should read the category id from the query variable ‘cat’:
$category_id = get_query_var('cat'); $shortcode = '[mashup query="cat=' . $category_id . '&posts_per_page=-1"]'; echo "Map of shortcode $shortcode" . "<br/>"; do_shortcode($shortcode); -
AuthorPosts
