WordPress.org

Ready to get started?Download WordPress

Forums

Linking to pages in wordpress installation (7 posts)

  1. matthisco
    Member
    Posted 1 year ago #

    Hi Folks,

    I've uploaded the files to the theme folder, and trying to query my php page from my homepage.php:

    var searchUrl = '<?php echo get_template_directory_uri(); ?>/phpsearch.php?lat=' + center.lat() + '&lng=' + center.lng() + '&radius=' + radius;

    I also have the database details file in the same folder , referenced in the phpsearch.php file.

    'require("dbinfo.php");'

    Will my php files work like this?

    Many thanks in advance.

  2. Sandra l***
    Member
    Posted 1 year ago #

    Do I get it right that you are trying to achieve this https://developers.google.com/maps/articles/phpsqlsearch_v3 in your WP site ? I am afraid that is not exactly the right way to address that. Why don't you look for a geolocation plugin instead?

  3. matthisco
    Member
    Posted 1 year ago #

    Many thanks for your reply.

    I have this page here:

    http://www.mharrisweb.co.uk/maps/map.html

    I would like to include it in my wordpress cms.

    http://tinyurl.com/cbt5z84

    any advice much appreciated.

  4. Sandra l***
    Member
    Posted 1 year ago #

    Have a look at this http://wordpress.org/extend/plugins/geo-mashup/ for instance.

  5. matthisco
    Member
    Posted 1 year ago #

    Thanks very much for your reply again.

    Do you now how I can populate the plugin with my example locations above?

    Many thanks

  6. Sandra l***
    Member
    Posted 1 year ago #

    I haven't looked at this plugin for other a year but I think I remember there are some custom fields attached to each post (for the lat and the lgn) and there is a shortcode that you can add in a page to display the google map and all.
    Give it a try.

  7. matthisco
    Member
    Posted 1 year ago #

    Many thanks for your reply.

    I have a basic site setup.

    http://tinyurl.com/cnkblfh

    Do you know how I can add a search box to the site so I can search an area by postcode for locations?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags