Tagged: custom div meta-box
- This topic has 3 replies, 3 voices, and was last updated 7 years, 1 month ago by
waterschaats.
-
AuthorPosts
-
-
January 6, 2015 at 6:57 am #3155
waterschaatsMemberI 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!
-
January 6, 2015 at 10:44 am #3156
SteveKeymaster@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.
-
January 6, 2015 at 11:09 am #3157
JasonKeymaster@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. 🙂
-
January 7, 2015 at 6:07 am #3158
waterschaatsMember
-
-
AuthorPosts
- The topic ‘custom div in meta-box’ is closed to new replies.