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

I'm working on a plugin that generates a list of candidates as output. For each candidate there is a link (View Details) that once is clicked, a popup appears. I need to put a simple contact form into that popup, so when a visitor click on the candidate's link, the popup appear and the visitor can get into touch with the website owner and ask references about that candidate.

As I said, all this is done by a plugin. I'm having problems in making a simple modal contact form from that plugin. Any idea in how to do that?

share|improve this question
up vote 2 down vote accepted

A) It's not a WP Question as long as it's not a specific plugin (link?).

B) Do it with jQuery:

var str = <?php echo $user_id.'etc.'; ?>;
var container = jQuery( '#contact_form_popup_id' ).html();
jQuery( container ).text( str );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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