PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Google map on preview and single.php

  1. Hi

    Looking to ad a google map field some how. I really don’t know whether to ad the map via the form ? Is there a GF plug in / ad on ?

    The goal is to have a map link on the single.php page when the post is displayed example:

    on that page say below the category below the photo. I looked threw the merge tags drop down choices but did not see it. But it is there in the email that is sent to the poster after the post.... So how do I get that link into the post body??

    Posted 11 years ago on Thursday August 9, 2012 | Permalink
  2. I have an idea for this one. I will post something by Monday at the latest.

    Posted 11 years ago on Friday August 10, 2012 | Permalink
  3. In the email to the visitor is a link to the Google Map, correct? Or do you have an example of a map actually embedded in the notification email?

    After thinking about it, I think the best approach is to use one of the existing Google Map plugins, and get the address information out of your entry and into the function call or shortcode for the Google Map plugin. Then you can configure the defaults for the Google Map plugin, and pull the address information from the entry.

    Looking more closely at it, it looks like all your real estate posts are created by a form? So, we should probably insert the address information into the content template, inside the Google Map shortcode, when the entry is accepted and before the post is created. That way, you don't need to modify your template at all, and it's all automatic.

    You can pick whichever Google Map plugin you like. The process will be basically the same. I used this one:

    With that plugin active, you can use this shortcode in your post: [google-map-sc]

    We need to add some details to that shortcode. I did this in the content template for my post body.

    This map was submitted by {Name (First):3.3} {Name (Last):3.6} on {date_mdy}.
    [google-map-sc type="HYBRID" width="584" zoom="18" address="{Address (Street Address):2.1} {Address (Address Line 2):2.2} {Address (City):2.3} {Address (State / Province):2.4} {Address (Zip / Postal Code):2.5} {Address (Country):2.6}"]

    That content template ended up creating a post with this content for a form submission I just made:

    This map was submitted by Hajii Gomeshi on 08/19/2012.
    [google-map-sc type="HYBRID" width="584" zoom="18" address="1301 S. Harlem Ave  Berwyn Illinois 60402 United States"]

    View the post:

    There are a lot more parameters you can use for that shortcode. Documentation is here:

    The merge tags are dependent on your form. Those were the merge tags from my form. You can see my form online here:

    If you submit that form, you will have a link to the post it creates in your on-screen confirmation. Click that and you will see the map embedded based on the address you entered.

    Let me know if you have any questions.

    Posted 11 years ago on Monday August 20, 2012 | Permalink
  4. I am trying to use this google map shortcode with a directory listing. address is included in the form.

    Where would I place the shortcode for google map. - if I have members adding there listing?

    Posted 11 years ago on Thursday March 28, 2013 | Permalink
  5. I'm trying to do the same. However, The instructions seem unclear and I'm having trouble. Where do I place the code?

    I want the user to submit the address of their studio so the form can generate a post of the studio's location with google maps.

    @Chris Hajer - How were you able to pull off the form with a map generating it. I see that you have no Post Body in your form, just the address and email form.

    Posted 11 years ago on Sunday March 31, 2013 | Permalink
  6. Please reread this topic and let me know which part is unclear. Give it a shot and see if it makes sense.

    I do not have a post body input, but there is a post body field in the form. The visibility is set to admin only. All the work is done in the content template for that post body, and using the merge tags. The content template I used for the post body is shown above.

    Posted 11 years ago on Monday April 1, 2013 | Permalink