Forum Replies Created
-
AuthorPosts
-
What do you mean by ‘execute a manual update’?
When you edit a map and save it, the saves its current size settings. Any existing shortcodes will display with that size by default.
If you want to ‘freeze’ the size in a particular shortcode you can add width and height parameters:
[mappress width="400" height="400"]Hi,
The JSON you pasted above is valid, but for some reason the JSON on the page isn’t. If I paste in the code above it works fine for me (in the ‘settings’ page demo map). I did this:
1. Went to settings
2. In the styled maps section I pasted the code you provided above verbatim. I gave the style the name ‘test’
3. I saved the settings
4. I selected the new map type in the ‘map types’ section and saved again
5. Now I was able to select map type ‘test’ in the demo map (and see the styles)What happens if you follow those steps?
Hi, this is the first time I’ve heard of that. Are you seeing this in the map editor or when viewing the blog?
Do you have the ‘geocoding’ settings configured?
It would be a big help if you could send a URL or a login and explain how I can see it for myself.
Hi, you can see the code in mappress_pro.php. The plugin uses the standard WP_Query class to read the posts, then combines the POIs from the maps attached to those posts into a single map.
You can edit the poi list template file ‘map_poi_list’. See the documentation for some info about copying it to your theme folder. That file has the layout of the list and it also defines the headers (like ‘location’).
In your styles.css for your theme add:
.mapp-poi-list {
max-height: auto;
}You can see the other styling in file mappress.css.
February 14, 2014 at 8:06 am in reply to: Mashup not picking up new posts after update to latest Pro version #14258The query on the mashup is showing category 8, not category 3. I assume that’s OK but I mention it because the shortcode you listed above shows category 3.
You can test the query itself (without MapPress) by putting this in a template file like sidebar.php or single.php:
$wpq = new WP_Query("category__in=8&post_type=any&posts_per_page=-1"); print_r($wpq); ?>
If the results look incorrect try deactivating *all* other plugins and switching to a standard theme for a moment – they often interfere with queries.
If that doesn’t help please send a login and I’ll take a look at the site. It’s best if you can replicate the problem on a test site or a copy of the site, rather than using the ‘live’ site.
February 14, 2014 at 5:54 am in reply to: Mashup not picking up new posts after update to latest Pro version #14255Hi,
The first thing to check is that those individual posts have a map. Do you see a map in those posts? If not, try publishing them to generate the map.
If the posts have a map and they are in category 3, they should show in the mashup.
A URL to illustrate an individual post and the mashup would help, or you can send a login using the contact form.
Sorry, I forgot – the p= query is only for a single post.
You need post__in. Here’s the example from the documentation:
[mashup query="post__in=3,4,5"]
Hi,
Sure, I assume you’re using a mashup map? If so you just need to get the underlying post ID from the POI, and then you can use standard WordPress functions to get the terms for each post.
For example this should print the terms for each post from one taxonomy ‘mytaxonomy’:
if ($poi->postid) { $terms = get_the_terms( $poi->postid, 'mytaxonomy' ); if ( $terms && ! is_wp_error( $terms ) ) { foreach ( $terms as $term ) { echo $term->name; } } }If you need to get more info about each term (like its label) you can use the WordPress get_term() function on each term.
There are some examples here that might help:
http://codex.wordpress.org/Function_Reference/get_term
http://codex.wordpress.org/Function_Reference/get_the_termsHi,
MapPress calls the WordPress function get_permalink() to get those links. It looks like maybe something is wrong with the blog’s permalinks.
Try going to the main WordPress settings -> permalinks and saving your settings again. This forces to blog to re-write the .htaccess file and sometimes repairs this kind of problem.
See the documentation for some examples of mashups using queries based on categories and tags.
http://mappresspro.com/mappress-documentationWordPress has some more here:
http://codex.wordpress.org/Class_Reference/WP_QueryAs I mentioned above you can also do post IDs, but I think categories or tags might be easier.
I looked at the page, but the directions settings for that map is showing as “none”.
Is it possible the settings weren’t saved, or the directions were set in the shortcode itself?
You should be able to see the directions behavior in the demo map on the MapPress settings page. For the shortcode, try this to force the directions ON:
[mappress directions="inline"]
If that doesn’t help, please send a login and I’ll try to find the issue.
There are two settings: the first is which links you want in the POI. It sounds like you’ve already set that one.
The second setting is the ‘directions type’ where you can select google, inline or none. Make sure you didn’t select ‘none’ for that setting because it will prevent the POI link from displaying.
If that doesn’t help, please provide a URL to illustrate the problem.
Hi,
It’s easier to create mashups is by using a category or tag, if that’s a possibility for your site.
If not, to use specific maps, you’ll need to use post ID or page ID – there’s no way to query by map ID.
For example:
[mashup query="p=1,2,3,4"]Or for pages:
[mashup query="page_id=1,2,3,4"] -
AuthorPosts
