Viewing 3 reply threads
  • Author
    Posts
    • #3155
      waterschaats
      Member

      I want to creating a google maps <div> in a meta-box to get lat & lng values. Is there a way to place a simple <div id=”map”> the piklist way. I just started an hour ago with piklist, and I must tell, very very impressive!

    • #3156
      Steve
      Keymaster

      @waterschaats– Welcome to the Piklist Community!

      There are two ways you can add HTML to a Meta-box:
      1) Just add it 😉 . We do this with the “Help” meta-box in the Piklist Demos.
      2) Use our HTML field: The HTML field is designed to wrap your code so the markup is similar to the other fields. Not sure if this will work for you since it adds extra markup.

      Let us know if either of these work for you.

      Only one hour and impressed… we’re so pleased!

      If you have time, please let the WordPress community know by giving Piklist a 5 Star review.

    • #3157
      Jason
      Keymaster

      @waterschaats Be careful of using the Google Maps API in the admin-side of your site. I developed a plugin a while ago that handles searching for posts within range by latitude/longitude, and I decided against using a map admin-side. The reason being that it’s actually against the Google Maps API terms of use unless you have a business account with them (which is very expensive). The API is for use up to 25,000 uses/day from a public facing page. In other words, if someone has to log in to see the map, it’s against their terms of use. And I was speaking with a Google rep a couple months ago and they mentioned they’re intending on cracking down on this, as they’re aware that it’s commonly ignored.

      Just a friendly warning. 🙂

    • #3158
      waterschaats
      Member

      @steve Wow it’s that simple? Brilliant! Piklist is exactly what I was looking for! I can do anything I want in an organised way. Again… brilliant! The five stars are in your pocket! 😉

      @jason Thanks for the warning!

Viewing 3 reply threads
  • The topic ‘custom div in meta-box’ is closed to new replies.