Support » Plugin: Geolocation IP Detection » Contact Form 7 Shortcodes?

  • Resolved chinwag

    (@chinwag)


    I’m not a great WP developer, more PHP and C++ and server-side, and all I want to do is store or pass via the email, the Country and City, so I can have an idea of where they are located. What shortcodes do I need and where do I need to include them please?

    I’m using Contact Form 7 and the CFDB with all the latest WP updates.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benjamin Pick

    (@benjaminpick)

    Thread Starter chinwag

    (@chinwag)

    Thank you for your prompt response and easy solution.

    If I want to pass a combined string of ‘Country’ + ‘Region’ + ‘City’ via the Contact Form 7 submission to store the string value in the CFDB. How can I do that please?

    Thread Starter chinwag

    (@chinwag)

    CF7 Form Shortcode (NOT EMAIL BODY):
    [geoip_detect2_text_input property:city]

    HTML Page Output:
    <span class=”wpcf7-form-control-wrap “><input type=”text” name=”geoip-text-input” class=”wpcf7-form-control wpcf7-geoip_detect2_text_input” aria-invalid=”false”> </span>

    The Select with Country list works, but I cannot get the “City” to display in the form.

    Thread Starter chinwag

    (@chinwag)

    [geoip_detect2_text_input city property:city lang:en]
    [geoip_detect2_text_input mostSpecificSubdivision property:mostSpecificSubdivision lang:en]
    [geoip_detect2_text_input country property:country lang:en]
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Contact Form 7 Shortcodes?’ is closed to new replies.