Learn more about Wordpress default hierarchy via https://wphierarchy.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
function list_sub(form, btn){ | |
input = { | |
action : 'actionSubscribe', | |
group_id : $('.form-subscribe input[name=form-subscribe-type]:checked').val(), | |
fname : form.find('.inputFname').val(), | |
lname : form.find('.inputLname').val(), | |
email : form.find('.inputEmail').val(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function search_therapists($results = -1, $address = '', $return = false) { | |
global $wpdb; | |
//Prep array for output | |
$output = array(); | |
//Query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>Form</title> | |
<div class="slim"> | |
<input type="file" name="slim[]"/> | |
</div> | |
... |
###Wordpress Geo Search Query
Extend Wordpress query to return posts within a radius of an address (plus optional filters) and order the resulting posts by proximity.