Tagged: php
if I insert a php code from page editor, this may obtain data get_post?
Hey Luis!
Not sure if that will work, did you try and what happened?
Regards,
Rikard
where you could insert php code to display on my home page?
I’m trying to implement this code in my site.
http://martyspellerberg.com/2012/02/tutorial-integrating-wordpress-and-google-maps-api-v-3/
Hey!
Can you please post the code you would like to add here using http://pastebin.com/ ?
Best regards,
Yigit
this I would like to add from the advanced editor endofold
<div id=”map” style=”width: 100%; height: 100%;”></div>
Hey!
There is a default Google Map element under Media Elements panel. You can use that instead.
Cheers!
Ismael
the item you want to add after making all the customfield latlng to create a map with all those positions like this
Hi!
It’s not possible to use php codes inside the editor by default but there are plugins out there that can enable this functionality. You can try these plugins:
https://wordpress.org/plugins/insert-php/
https://wordpress.org/plugins/php-code-widget/
Unfortunately, the code might not work because of script incompatibility. Like for example, you cannot call the wp_footer function again because it is already included in the footer.php file:
wp_footer();
And from the looks of it, the script is called inside another body tag. You need to remove that as well. Please contact the plugin author to modify it according to your needs.
Regards,
Ismael