[Plugin: Geolocation] PHP Notices / Shortcode Question
-
Hi All.
Two issues:
1. When Geolocation is activated and a new Post is published without setting my location, I receive the following PHP notices:
Notice: Undefined offset: 0 in /var/www/vhosts/server.com/sites/domainname.com/wp-content/plugins/geolocation/geolocation.php on line 537 Notice: Undefined offset: 0 in /var/www/vhosts/server.com/sites/domainname.com/wp-content/plugins/geolocation/geolocation.php on line 537 Notice: Undefined variable: city in /var/www/vhosts/server.com/sites/domainname.com/wp-content/plugins/geolocation/geolocation.php on line 522 Notice: Undefined variable: city in /var/www/vhosts/server.com/sites/domainname.com/wp-content/plugins/geolocation/geolocation.php on line 524 Notice: Undefined variable: state in /var/www/vhosts/server.com/sites/domainname.com/wp-content/plugins/geolocation/geolocation.php on line 526 Notice: Undefined variable: country in /var/www/vhosts/server.com/sites/domainname.com/wp-content/plugins/geolocation/geolocation.php on line 528 Notice: Undefined variable: address in /var/www/vhosts/server.com/sites/domainname.com/wp-content/plugins/geolocation/geolocation.php on line 531
2. Is there any way to execute
[geolocation]
from my theme’sfunctions.php
file? When I try to runecho do_shortcode('[geolocation]');
in my theme’sfunctions.php
file nothing happens and the plain text “[geolocation]” is output to the browser. If this won’t work, is there a way to changeadd_filter('the_content', 'display_location', 5);
(located on line 31 ofgeolocation.php
) without actually touching the plugin? I’d rather not package the plugin with my theme but I feel somewhat limited by the placement locations I’m offered. Thanks a lot.
- The topic ‘[Plugin: Geolocation] PHP Notices / Shortcode Question’ is closed to new replies.