WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Well my question is quite simple, I would like to populate a field with the value of a variable that have been passed via a $_GET Request.


share|improve this question

closed as off-topic by birgire, mrwweb, Johannes Pille, Pieter Goosen, ialocin Sep 5 '14 at 11:14

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic." – birgire, mrwweb, Johannes Pille, Pieter Goosen, ialocin
If this question can be reworded to fit the rules in the help center, please edit the question.

I do it using wpcf7_add_shortcode() function http://contactform7.com/2015/01/10/adding-a-custom-form-tag/ – vladkras Aug 26 '15 at 18:37
You can execute any php-code and pass any variable there, incl. GET, POST, WP vars and functions, etc. – vladkras Aug 26 '15 at 18:55
up vote 1 down vote accepted

Take a look at Contact Form 7 Dynamic Text Extension

share|improve this answer

You might want to extend the contact form. I don't know how this works nowadays and how the plugin has changed, but I had to do it in the past and I wrote a blog post about it: http://kovshenin.com/archives/wordpress-extending-the-contact-form-7-plugin/

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.