Support » Plugin: Contact Form 7 Dynamic Text Extension » get custom_field based on post id and key

  • Resolved Popescu M


    Hi, I have a small directory website where visitors can click on a send email button that opens a page like where id is the post_id and then send an email to the company which has that id.

    How can I populate the contact form email address based on the custom field key and that id? I saw [dynamictext recipient-email uneditable “CF7_get_custom_field key=’user_email'”] but is there a way to get the variable from the url and use it?

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author sevenspark


    Hi Popescu,

    That ID is likely stored in a $_GET variable, so you may be able to retrieve it that way. Alternatively, you could parse the URL, but the value is almost certainly present in either the $_GET array or Query Vars.

    If you need to determine a value based on both a custom field and the post ID, you’d probably need to write a custom shortcode to do that.

    Hope that helps,


Viewing 1 replies (of 1 total)
  • The topic ‘get custom_field based on post id and key’ is closed to new replies.