Skip to main content
9 events
when toggle format what by license comment
Dec 9, 2017 at 18:51 comment added Caesar Thank you @Jack I've made some changes in my code, been reading the Codex from wp_localize_script but Im still confused... Ive refreshed the question with the new code and notices. :(
Dec 9, 2017 at 17:33 history edited Johansson CC BY-SA 3.0
added 694 characters in body
Dec 9, 2017 at 12:02 comment added Caesar Added the changes that I've done to the question. Thank you!
Dec 9, 2017 at 6:06 comment added Caesar Nothing, I wrote it without apostrophes and get the same notice. In my_function() have written the php from the template-userslocation.php. After trying to declare also the pos variable out of the conditional as var pos; get the same answer. Have changed lat: position.coords.latitude, lng: position.coords.longitude to real coordinates like: lat: 43.362344, lng: -8.411540 and stil get NULL. Thank you for your support Jack.
Dec 8, 2017 at 11:45 history edited Johansson CC BY-SA 3.0
deleted 4 characters in body
Dec 8, 2017 at 11:07 comment added Caesar It seems there is a problem with the variable
Dec 8, 2017 at 11:07 comment added Caesar I'm getting NULL Notice: Undefined index: pos in /home/.../wp-content/plugins/zaeplug-userslocation/zaeplug-userslocation.php on line 21 NULL
Dec 8, 2017 at 10:56 comment added Caesar Thank you a lot Jack! Have made some tries and get Notice: Undefined index: pos in /home/.../wp-content/plugins/zaeplug-userslocation/zaeplug-userslocation.php on line 20 now will make a brake because my eyes are near to explote.
Dec 8, 2017 at 7:30 history answered Johansson CC BY-SA 3.0