Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a Contact Form 7 form as a page on my site. I'd like to place the contact form on the sidebar. How can I do this?

share|improve this question
Thanks for retagging. I didn't have the rep to make a tag. – RememberME Oct 5 '10 at 14:42

1 Answer

up vote 2 down vote accepted

Have you tried the options suggested in this WordPress Support thread? They range from copying the generated code in a Text Widget to parsing the shortcode yourself in your template (<?php echo do_shortcode('[contact-form 1 "Contact form 1"]'); ?>).

share|improve this answer
I copied the shortcode into a text widget and placed in my sidebar. <?php echo do_shortcode('[contact-form 2 "Case Submission Form"]'); ?> The submit works, but the '); ?> shows as text under the form? – RememberME Oct 5 '10 at 14:41
@RememberMe: This is the full PHP code you would use in your template. If you want to try it in a text widget, you only use [contact-form 2 "Case Submission Form"]. Someone on the forum noticed this didn't work for him, but the code could have been updated since then. – Jan Fabry Oct 5 '10 at 16:06
Thank you! That does work for me. – RememberME Oct 5 '10 at 18:05

Your Answer

 
discard

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.