Chris

Forum Replies Created

Viewing 15 posts - 511 through 525 (of 1,120 total)
  • Author
    Posts
  • in reply to: Update Resize #14301
    Chris
    Keymaster

      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"]

      in reply to: Custom Map Styles #14287
      Chris
      Keymaster

        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?

        in reply to: Default POI/map center #14286
        Chris
        Keymaster

          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.

          in reply to: Create Mash Up #14285
          Chris
          Keymaster

            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.

            in reply to: Remove the word "location" above POI list #14271
            Chris
            Keymaster

              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 reply to: Show full POI list without scrolling #14270
              Chris
              Keymaster

                In your styles.css for your theme add:

                .mapp-poi-list {
                max-height: auto;
                }

                You can see the other styling in file mappress.css.

                Chris
                Keymaster

                  The 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:

                  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.

                  Chris
                  Keymaster

                    Hi,

                    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.

                    in reply to: Create Mash Up #14253
                    Chris
                    Keymaster

                      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"]

                      in reply to: Displaying terms from Taxonomies in Poi List. #14251
                      Chris
                      Keymaster

                        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_terms

                        in reply to: POI in Widget are not linked to Posts #14249
                        Chris
                        Keymaster

                          Hi,

                          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.

                          in reply to: Create Mash Up #14242
                          Chris
                          Keymaster

                            See the documentation for some examples of mashups using queries based on categories and tags.
                            http://mappresspro.com/mappress-documentation

                            WordPress has some more here:
                            http://codex.wordpress.org/Class_Reference/WP_Query

                            As I mentioned above you can also do post IDs, but I think categories or tags might be easier.

                            in reply to: "Directions To/From" Not Displaying #14236
                            Chris
                            Keymaster

                              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.

                              in reply to: "Directions To/From" Not Displaying #14234
                              Chris
                              Keymaster

                                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.

                                in reply to: Create Mash Up #14230
                                Chris
                                Keymaster

                                  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"]

                                Viewing 15 posts - 511 through 525 (of 1,120 total)