I have one external page (google_map.php
) which contain code to display google map information based on the selection criteria.
And in the wordpress page I want to display the google map which is coded in google_map.php
.
I want to ask that how can I add google_map.php
page in my wordpress page?
Or other option,
Can i directly add my google_map.php
page code to the wordpress page?
I don’t want to use any plugin to support php code in the wordpress page like Exec-PHP plugin.
Which is the better way?
It is actually very simple. just
that is it, you can read more here
IMO the best option for what you want to do would be to use the MapPress plugin – the free version works really well and will allow you to embed a customizable google map into any post or page quickly and easily through your admin page editor.
Otherwise you could create a page template and use a php include to call the google_map.php page wherever you want it displayed within your page/post.