January 21, 201115 yr Hi guys, Its my first time properly using Wordpress as a CMS (for my portfolio site) and I'm having a bit of trouble adding a contact form. I've tried using 'Contact Form 7', and it downloads and installs fine, but it gives me a small piece of code, '[contact form 1 ('contact form 1')]' (its something like this, not exactly this), to paste into my post/page. It works fine, but it displays on my site as a post, and I simply want it to appear on my Contact page as a contact form, not being displayed as a post. Is there perhaps some piece of code I am missing to be able to code it in and reference it from my contact_page_template.php file, thus bypassing the need to add the piece of code as a post? I know I could just code it manually, but it seems silly when all this should be doable using Wordpress and widgets!! I'm sure its something obvious, but a point in the right direction would be welcomed, Thanks in advance, Kyle Edited January 21, 201115 yr by KCooper
January 21, 201115 yr If you mean what I think you mean, i.e using the contact form outside of the loop, then this should do it: <?php echo do_shortcode( '[contact-form 1 "Contact form 1"]' ); ?>
Create an account or sign in to comment