Version 1.5.0 Issue
-
Hi, since I updated to 1.5.0 my previous short codes are no longer working, I rolled back to 1.4.0 and they all work again, any ideas on how to address this? I extract the Longitutde and latitude from an ACF date field to input it into this shortcode. The longitude and latitude are a string of digits to three decimal places per your instructions. Also, if anyone needs it, below is the snippet on how to extract the info from an ACF address field.
$location = get_field('project_address'); if( $location ): $lat= esc_attr($location['lat']); $lng= esc_attr($location['lng']); endif; $lat_short= number_format(floor($lat*1000)/1000, 3); $lng_short= number_format(floor($lng*1000)/1000, 3); if (empty($location)) { echo 'No Weather'; } else {echo do_shortcode('[ventus width="100%" height="350px" radius="20px" loading="lazy" lat="'.$lat_short.'" lon="'.$lng_short.'" zoom="4" layer="clouds" scale="F" units="mph" pressure="true" marker="true" forecast="true" time="now"]');}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Version 1.5.0 Issue’ is closed to new replies.