Contact form 7 is one of the most popular plugins for Wordpress. Currently it’s 6th most downloaded plugin for Wordpress. It’s very customizable at it can be easily integrated in posts and pages. That’s great but people sometimes want to integrate it in sidebar, header or footer so that it can be accessed on multiply pages. Looking at the code of plugin I found out that you need to use just a couple of lines of code to do that, just copy/paste this code:
<?php global $wpcf7_contact_form; if ( ! ( $wpcf7_contact_form = wpcf7_contact_form( 1 ) ) ) return 'Contact form not found!'; $form = $wpcf7_contact_form->form_html(); echo $form; ?>
Just change the number 1 in wpcf7_contact_form( 1 ) to number of your contact form you need.
Related posts:








I'm Devic Bojan a student of Information Technology form Bosnia and Herzegovina. I love free and open software and any kind of programming.




I’ve finally learned what ‘upward compatible’ means. It means we get to keep all our old mistakes.



I just want to tell you that your blog is very interesting, bookmarked
There is obviously a lot to learn. There are some good points here.
Good work buddy , keep us posting