[Support request] How to use custom field values as dynamic data in shortcodes and HTML

Home Forums Support [Support request] How to use custom field values as dynamic data in shortcodes and HTML

Home Forums Support How to use custom field values as dynamic data in shortcodes and HTML

  • This topic has 20 replies, 3 voices, and was last updated 2 years ago by Elvin.
Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #2179354
    Takeru

    Thanks.

    Do I put the field name in “New York” in [display_gmap address=”New York”]?

    #2179371
    Elvin
    Staff
    Customer Support

    Yes, that’s correct. you’ll have to add the field name. ๐Ÿ™‚

    #2179392
    Takeru

    Thank you very much.
    I will try it.

    #2179397
    Elvin
    Staff
    Customer Support

    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"]' );

    #2179400
    Takeru

    Thank you for your kind attention.

    #2179445
    Elvin
    Staff
    Customer Support

    No problem. Feel free to open new topics if you need further help. ๐Ÿ™‚

Viewing 6 posts - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.