Chris

Forum Replies Created

Viewing 15 posts - 1,066 through 1,080 (of 1,120 total)
  • Author
    Posts
  • in reply to: Mappress: "Current" Query not Working #9676
    Chris
    Keymaster

      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”.

      in reply to: MapPress 2.38.1 Beta #9639
      Chris
      Keymaster

        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.

        in reply to: Default Start Location #9630
        Chris
        Keymaster

          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).

          in reply to: Move Map Markers but keep destination address the same #9629
          Chris
          Keymaster

            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.

            in reply to: Link to map location #9628
            Chris
            Keymaster

              Hi, no that’s not yet possible.

              in reply to: Link Listing to Mashup #9627
              Chris
              Keymaster

                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?

                in reply to: Limiting the number of posts on mashup map #9625
                Chris
                Keymaster

                  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?

                  in reply to: Hide Mashup if No POI / Maps Associated with Category #9624
                  Chris
                  Keymaster

                    Hi Eric, I think I’ve answered these questions in my reply to your email but if not please let me know.

                    in reply to: Default Start Location #9623
                    Chris
                    Keymaster

                      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.

                      in reply to: Rearrange order of location list #9622
                      Chris
                      Keymaster

                        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.

                        in reply to: Add an image to show when directions button clicked #9621
                        Chris
                        Keymaster

                          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.

                          in reply to: MapPress Pulling Info #9583
                          Chris
                          Keymaster

                            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.

                            in reply to: MapPress Pulling Info #9580
                            Chris
                            Keymaster

                              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.

                              in reply to: Limiting the number of posts on mashup map #9578
                              Chris
                              Keymaster

                                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.

                                in reply to: Limiting the number of posts on mashup map #9576
                                Chris
                                Keymaster

                                  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?

                                Viewing 15 posts - 1,066 through 1,080 (of 1,120 total)