Hello.

Shortcode work with a Infowindow location but doesn’t work with Post ?
Is this normal ?

Public
Hello,
No, short-code works for both method on location creation. Go to manage map and copy the shortcode and paste it any posts/pages where you want to display map.
Please check this guide tutorial: https://wpgmp.flippercode.com/docs/how-to-display-posts-content-in-google-map/
Thanks
#1
Public
OK thanks for your answer.

Here is my problem, I use ACF repeater for some data. I need to add a PHP loop to display them in infowindows Message.

I try to do this using php snippet and a shortcode. But shortcode doesn't work for me.

Do you have another solution ?
#2
Public
Hello,
Please check this guide tutorial to work with ACF https://wpgmp.flippercode.com/docs/how-to-assign-location-using-acf-plugin/
I hope it helps you.

Thanks
#3
Public
The Code is broken in the section regarding showing ACF map in post edit menu.

"function my_acf_google_map_api( $api ){
$api['key'] = 'Insert your api key here';
return $api;
}
add_filter('acf/fields/google_map/api', 'my_acf_google_map_/code>"

Does not work... What is needed to correct it?
#4
Public
Hello,
You need to insert this code in your activated theme functions.php and your issue will be resolved

function my_acf_google_map_api( $api ){

$api['key'] = 'YOUR API KEY';

return $api;

}
Thanks
add_filter('acf/fields/google_map/api', 'my_acf_google_map_api');
#5
Public
Thank you, I got it working.

The original question still is unsolved. Any shortcode content in a POST, does not appear on the Google Map plugin frontend.
However, when posting shortcode in a LOCATION it does appear...
#6
Public
Please share your wp login details so i can also check it why your shortcode is not working in a post. You can mail me at support@flippercode.com
Thanks
#7
Public
Sent!
#8
Public
Yeah we have received and working on it.
#9
Public
This issue has been resolved.
#10

Please login or Register to Submit Answer