Forum Replies Created
-
AuthorPosts
-
Hi, did you put that code in a post, or did you use do_shortcode() to place it in your template?
The reason I ask is that if you insert it into a post the ‘current’ posts is only that post.
If you put it in the template, it should show all of the posts WP has selected (WP places them in a global variable called $wp_query). An example of this is the sidebar widget, which should show all the posts being displayed if you use “current”.
The release notes are in the readme.txt file when you download.
You can probably run it in production but there may be some bugs.
Hi,
Sure, check out file ‘mappress_api.php’, function ‘_mapp_directions_html’.
There’s a filter as well: ‘mapp_directions_html’.
You can try hardcoding the start location (I’m assumng that’s what you want to do) here:
<input style='width:90%' type='text' id='{$options->mapName}_saddr' value='' />As a heads-up, in the next release the filter will be removed and the directions form will be in a separate ‘template’ file. You will need to copy the template to your theme directory and re-apply any changes there (but only once).
Hi, no that’s not possible. Obviously you can zoom in to space things out (depending on your map), but there’s no built-in option to space out the markers for you.
Hi, no that’s not yet possible.
Hi, sorry, but this isn’t possible in the current version.
I can try to provide something in the next release of the plugin (2.38.2). What kind of ID were you hoping to provide to the map to indicate which POI to open? A post ID?
Hi Christian,
I’m sorry, I’m not sure I understood your question.
Could you provide an example or URL to show what you mean? If you’re asking about a shortcode, can you provide the exact shortcode you’re using?
Hi Eric, I think I’ve answered these questions in my reply to your email but if not please let me know.
Hi,
Sorry, but that’s not supported by the plugin yet. You could possibly modify the PHP code to force the address you want in the directions form – let me know if you want to try that approach.
The ability to drag & drop marker order will be in beta 2.38.2. I don’t have a release date yet for that version (I always miss them anyway) but I’m working on it now and I’ll try to post here when it’s available.
Until then, if you desperately need to do a one-time sort, shoot me an email using the contact form and I’ll try to give you some quick-and-dirty code for it.
Hi Jeff,
Sorry, I’ve been working on the next release and haven’t kept up with support questions.
The answer is no – that functionality isn’t supported in the plugin yet. I don’t think there’s even a useful hook to do it yourself.
Hi, normally the class definition is included before unserialize().
One solution might be to create a stub class with the properties you want. I mean copy the Mappress_Map and Mappress_Poi classes from mappress_api.php with the properties (but not the methods) and include them in your own project.
Hi, my advice would be to not read the data directly – it’s saved as a serialized PHP object. You can use the mappress_api.php functions, like Mappress_Map::get() to read it, or you should also be able to just unserialize() it if you’re not using WordPress. Once you get the object, it should be easy to get the data you want.
Sorry, I meant I’d like to see your shortcode with “posts_per_page” in it, since I didn’t see any query in that shortcode.
If you use the mashup shortcode with no query, the plugin will try to show all posts.
If you use a query in the shortcode you can limit which posts are searched and limit the number of results.
There are some examples in the documentation, but basically you could use something like this:
[mashup show="query" show_query="posts_per_page=-1&post_type=any"]That query will search ALL posts so you might want to also specify a category or tag to limit which posts are checked for maps.
Hi, posts_per_page is the way to go. Can you provide an example of your code or shortcode? And what happened when you tried it?
-
AuthorPosts
