jeff2mars
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptynevertheless, I don’t think that the order of displayed posts is made according to the nearest coordinates…
my url returned by my search form is http://localhost/?s=&post_type=product&lat=43.215134&lng=5.537119999999959
and if I echo the $join and $orderby query it returns
INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_postmeta AS mt1 ON ( wp_posts.ID = mt1.post_id ) INNER JOIN wp_postmeta AS mt2 ON ( wp_posts.ID = mt2.post_id ) LEFT JOIN wp_acf_google_map_search_geodata AS acf_gms_geo ON wp_posts.ID = acf_gms_geo.post_id (POW((acf_gms_geo.lng-5.537119999999959),2) + POW((acf_gms_geo.lat-43.215134),2)) ASCDo you think it’s correct?
- This reply was modified 8 years, 4 months ago by jeff2mars.
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyok when commenting, a line is added to the table !
but the older posts that have an address are not inserted in the table (assuming that the function update_historic_post_gm_data() is supposed to do that)
- This reply was modified 8 years, 4 months ago by jeff2mars.
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyyes, when I try do display $_POST[‘acf’] I get
Notice: Undefined index: acf in C:\wamp64\www\wp-content\plugins\acf-google-maps-radius-search\functions.php on line 33
I don’t know why…
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain empty“test is displayed.
and with var_dump :
Notice: Undefined variable: address in C:\wamp64\www\wp-content\plugins\acf-google-maps-radius-search\functions.php on line 3
C:\wamp64\www\wp-content\plugins\acf-google-maps-radius-search\functions.php:33:nullForum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyI modify the following code, it’s showing nothing special
function acf_google_maps_search_save_post( $post_id ) { // bail early if no ACF data if( empty($_POST['acf']) ) { return; } $address = get_field( 'address', $post_id ); if( $address ){ $acf_gms = new acf_gms; $data = [ 'post_id' => $post_id, 'lng' => $address['lng'], 'lat' => $address['lat'], ]; var_dump($address); exit; $acf_gms->save( $data ); } }- This reply was modified 8 years, 4 months ago by jeff2mars.
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyi’m sorry but how could I check if the action is firing ?
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyyes ok it’s a plugin, then it’s well installed like other plugins but the table is still empty. Does it work with products ? My address field is only filled for some products, not for all… may it be the problem ?
Forum: Plugins
In reply to: [ACF Google Maps Radius Search] Table remain emptyyes im using ACF, and my google map field is named address in acf.
You agree that I should let everything in the acf radius search folder even the functions.php ?
Forum: Fixing WordPress
In reply to: Display discounts with Woocommerce BookingsThe plugin is https://woocommerce.com/products/woocommerce-bookings/
They told me it’s only possible if we customize the code…