Chris

Forum Replies Created

Viewing 15 posts - 361 through 375 (of 1,121 total)
  • Author
    Posts
  • in reply to: Map styling? #16178
    Chris
    Keymaster

      Hi Connie,

      MapPress already supports styled maps. I’m not sure if it’s what you are looking for, but you can just paste the json from snazzymaps (or the Google Styled Maps Wizard) into the plugin settings screen. You can define unlimited styles that can be selected for individual maps, or define a single style to apply to all maps by default.

      in reply to: How to query for a posts of a given date or younger? #16168
      Chris
      Keymaster

        You can easily show the most recent 10 posts:
        [mashup query="post_type=any&posts_per_page=10"]

        Unfortunately, if you instead want to use a specific time (like past 30 days), WordPress really doesn’t offer a way to do this in a query string – you would need to use a PHP template tag instead. If you want to take that route please see the documentation for some examples and the WordPress Codex for info about the date parameters:

        https://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters

        in reply to: Geocoding error – quota exceeded #16122
        Chris
        Keymaster

          Hi,

          If it’s a local machine I’m not sure why you would be exceeding the quota. What exact message do you get?

          Is your machine using a static IP?

          If it’s a local static machine you shouldn’t need an API key at all, so I’m not sure the new code will fix the root problem, but I’ll send it to you anyway.

          in reply to: Geocoding error – quota exceeded #16118
          Chris
          Keymaster

            Hi Karen,

            If you’re on a shared server, then another user on that server may have reached the geocoding limit. There’s some information about this problem in the documentation and the FAQ.

            I was about to tell you you’re out of luck with that server, but I just checked Google’s docs and they seem to have changed their rules.

            Previously the geocoder didn’t even accept an API key. The key only affected the number of maps that could be displayed. However, at some point this must have changed. The geocoder now seems to support API keys, which would imply that you could get a ‘private’ 2500-request limit.

            I’ve updated MapPress to pass the API key to the geocoder, and it seems to work. Please send me an email and I’ll send you a copy of the updated code to test.

            in reply to: Mashups and custom post type archvies #16115
            Chris
            Keymaster

              Hmmm… honestly, I don’t know. You could use 3 separate mashups (one for each taxonomy archive), just replace ‘trails’ with ‘county’ or ‘season’ (or whatever query variable they’re registered with).

              It might also work to use one mashup for all three:

              [mashup query="trails=@trails&county=@county&season=@season&posts_per_page=-1"]

              in reply to: Mashups and custom post type archvies #16110
              Chris
              Keymaster

                Sounds good – one thing to try is maybe use ‘trails’ instead of ‘trail’. From the site it looks like maybe the taxonomy is registered under the plural, so this might work:

                [mashup query="trails=@trails&posts_per_page=-1"]

                in reply to: Mashups and custom post type archvies #16108
                Chris
                Keymaster

                  Hi,

                  The should pull in the current taxonomy, but ‘trail’ is blank on that page. It doesn’t look like an archive page for a trail. Maybe a ‘county’ query would work better on that page, to show all the trails in a county:

                  [mashup query="county=@county&posts_per_page=-1"]

                  Also, you may want to confirm that the query variables do have the same name as the taxonomy (it’s possible for them to be different). You’d need to find the register_taxonomy call that was used to register them – there’s some info here:

                  https://codex.wordpress.org/Function_Reference/register_taxonomy

                  in reply to: Mashups and custom post type archvies #16106
                  Chris
                  Keymaster

                    Hi,

                    I gave an example of doing the mashup for all the posts in the current category. For category, the query variable is ‘cat’. It should be set when WordPress displays an archive of posts for that category.

                    For custom taxonomies, the query variable is usually the same as the taxonomy. So the mashup to show all posts for the current trail is:

                    [mashup query="trail=@trail&posts_per_page=-1"]

                    in reply to: Mashups and custom post type archvies #16104
                    Chris
                    Keymaster

                      Hi,

                      The query you were using just shows the currents posts, so you’ll need a ‘query’ parameter to tell the plugin what to select from the database.

                      For example, this should show *all* trails:
                      [mashup query="tax=trails&posts_per_page=-1"]

                      The other taxonomies should work the same way, but let me know if I’m missing something.

                      Chris
                      Keymaster

                        Hi,

                        There’s nothing in the plugin to prevent display of two markers at the same location, but if they are in exactly the same place they’ll display on top of each other (you’ll have two entries in the POI list, though). One solution for that might be to slightly stagger the markers lat/lng by a random amount, or drag them slightly when you save the maps.

                        It is on my enhancement list to handle multiple markers in a single infowindow, but it’s difficult to implement and I don’t have any ETA for it yet.

                        in reply to: Removal of mappress_poi_html filter #15998
                        Chris
                        Keymaster

                          Hi Ian,

                          Sorry, I wasn’t sure if anyone was using it. I’ll add the filter back in for version 2.43.4.

                          in reply to: Styled Maps JSON | pro 2.43.3 WP 4.2.2 #15994
                          Chris
                          Keymaster

                            Hi Kelly,

                            Thanks for the update. Do you have an example of the name or location of one of these markers that can’t be removed? I’m just curious to see what they look like.

                            in reply to: Styled Maps JSON | pro 2.43.3 WP 4.2.2 #15982
                            Chris
                            Keymaster

                              Hi,

                              The best thing is probably to play around with the Google Styled Maps Wizard. There’s also a link to it in the MapPress settings:
                              http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html

                              Try clicking on ‘points of interest’ and setting visibility to ‘off’. I think that’s what the sample JSON does. Then you can zoom in on the location and see if that works. If you get it working the way you like you can click ‘show json’ and copy the JSON into MapPress.

                              I doubt that another plugin is doing anything… but if the styled maps wizard doesn’t work for you please give an example with a URL.

                              in reply to: Wrong Geocoding for a street #15979
                              Chris
                              Keymaster

                                Hi,

                                Thanks, I’ll release 2.43.4 today. Please be sure to download and use the version from this site (the build you have tested was not complete).

                                in reply to: Wrong Geocoding for a street #15975
                                Chris
                                Keymaster

                                  Hi,

                                  Thanks for letting me know. I think I’ve found the problem and it should be fixed in 2.43.4. I’ve sent you an email as well to see if you could test it for me be I release the change.

                                Viewing 15 posts - 361 through 375 (of 1,121 total)