Balkhis - Vision For Success

How to add a contact form to Wordpress?

Dear Readers, I would like to thank you for reading this post. I highly value your feedback and would like to know more about my readers. Follow me on Twitter

Whether you agree or not, contact form is a must for blogs because it gives your users an opportunity to communicate with you. I was quiet surprised when I got emails from people asking me which wordpress contact form I am using. I told all of them which one I was using via email, and two of them still came back to ask me how to make it work. Then I thought maybe it is time to write a tutorial post which answers the question how to add a contact form to wordpress.

Well the plugin I am using is called WP-Contact Form which was originally written by Ryan Duff (His site is no longer active). But Douglas Karr did a great job in updating this plugin and making it available for us.

It is a very simple plugin, and you can see it working live at Balkhis Contact Page.

All you have to do is head over to the Actual Plugin Site, and Download the plugin.

Simply Upload it to the plugins directory via FTP.

Go to your blog’s admin panel and activate the plugin.

Then head over to settings, and edit the contact form settings. (If you have alot of plugins then you probably won’t see it there. Read the bug I found in the default wordpress admin panel theme, so you might need to download fluency. Once again read that post for detail)

Reminder: Change your security question and make it interesting. 2+2=4 is a simple question which most spammers can get easily. I am sure not many can get how to spell balkhis backwards. This will cut the spam down.

Now go and write a page, and name it Contact

Just add this contact in the Post text area % %wpcontactform% %, and you will be good to go.

If you want to do it via php in the template php file then use this code: <?php wpcontactform() ?>

Now you have a ready contact form for your blog.

Why should you add the contact form to your blog?

Simple, so your users can connect with you. Even more is if someone wants to advertise on your site or have some question, they can directly contact you.

So add a contact form to your wordpress blog right now.



To stay updated with the blog, please consider subscribing to my full feed RSS. You can also subscribe by Email and have new posts sent directly to your inbox. I hate spam as well, so I promise you that you will not be spammed.
Add to Social Bookmarks:
Add this Article to Digg Add this Article to Stumbleupon Add this Article to Del.icio.us Add this Article to Reddit Add this Article to Newsvine Add this Article to Technorati

RSS feed | Trackback URI

16 Comments »

Comment by Angad Sodhi
2008-06-23 08:42:33

This is probably the best contact form plugin for WP. Btw can you use the form more than once on the blog? In the admin panel, you have to mention the page where you’ll be using it.
Also, why does the form not show in the index.php and shows in the single page?


Comment by Syed Balkhi
2008-06-23 11:45:21

I believe you can show it on more then one page by displaying the codes. I don’t know about index.php and single.php why it would show on one and not the other.


 
 
Comment by Chessmaster
2008-06-23 08:54:38

This is very good for any starting blogger. I’m happy I had already implemented this before.

I agree the contact form is important, I often try to contact a blogger to find out my only way is through his last post, especially on french blogs.


 
Comment by Chessmaster
2008-06-23 16:21:14

Just found out about the new design.
Looking pretty pimp, much more professional.

Good job, I’ll have to get used to it.


 
Comment by Authority Directory
2008-06-23 19:28:02

Love the new blog design Syed – you did a great job on it!

Oh and nice post on the contact form. I believe that it is important to have a way to contact the site owner if you need to.


 
Comment by tyna Subscribed to comments via email
2008-06-23 20:31:18

Syed good to see that you have answered my question,thank you let go and try it again.I like the new look of your blog.


 
Comment by Enkay Blog
2008-06-23 22:54:28

Great job with the new theme. Im loving it!


 
Comment by Angad Sodhi
2008-06-24 06:32:53

Theres no recent posts list on the new blog (just on the homepage)


 
Comment by tyna Subscribed to comments via email
2008-06-25 02:42:18

The contact form instruction did not work on my blog.


Comment by Syed Balkhi
2008-06-25 10:53:49

what part didn’t work ?


 
 
Comment by tyna Subscribed to comments via email
2008-06-26 20:35:42

I did everything but when i go to the contact page i don’t see the form,i only see % %wpcontactform% %, the one i pasted on the text area.


Comment by Syed Balkhi
2008-06-26 21:34:34

remove the spaces between the two %%… The only reason why I put the space there otherwise wordpress will show contact form on my page.


Comment by tyna Subscribed to comments via email
2008-06-26 21:56:26

Syed, thanks a lot it is works now.

(Comments wont nest below this level)

Comment by Syed Balkhi
2008-06-27 03:06:03

great :)


 
 
 
 
Comment by Puneet
2008-07-09 02:52:43

here i got one more useful plugin of COntact form for wordpress :-

http://chip.cuccio.us/projects/contact-form-ii


 
2008-08-18 07:32:57

[...] Form. As you guys know that I have always supported contact forms. I even wrote a post about how to add a contact form in wordpress. So definately check our his post and add a contact form if you need [...]


 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.
Subscribe to Balkhis via RSS
Subscribe to Balkhis via Email