Archived topic
How to use custom field values as dynamic data in shortcodes and HTML
20 replies · Started by Takeru on April 4, 2022
Thanks.
Do I put the field name in "New York" in [display_gmap address="New York"]?
Yes, that's correct. you'll have to add the field name. :)
Thank you very much.
I will try it.
If it doesn't output anything, there are 2 things to make sure to check.
First is to make sure the address field is valid.
Another one is the API key.
If both are 100% sure to be valid, try changing this line:
do_shortcode( '[pw_map address="'.$address.'" key="YOUR API KEY"]' );
to
echo do_shortcode( '[pw_map address="'.$address.'" key="YOUR API KEY"]' );
Thank you for your kind attention.
No problem. Feel free to open new topics if you need further help. :)