Tag Info

Hot answers tagged

21

Contact Form 7 is one of the most popular plugins to add a contact form to a WP blog. It supports multiple contact forms and you can add/remove fields as needed. Additional services such as reCAPTCHA and Akismet can be added. I use this on most of my blogs to power the contact features.


8

Since the website field is hardcoded in the user-edit.php page and not part of the _wp_get_user_contactmethods( $profileuser ) you can try to remove it with jQuery: function remove_website_row_wpse_94963() { if(!current_user_can('manage_options')){ // hide only for non-admins echo ...


7

When dealing with forms you need to make sure that your form doesn't have a few specific filed names like: name,day,month,year and I'm sure that a few more, so make your form fields names more specific like: contact_name,contact_day,contact_month,contact_year. in your case change name="name" to anything else.


5

One of the most common plugins used to do this is Contact Form 7. There are also numerous other free plugins to add this functionality, as well as paid plugins such as Gravity Forms.


5

Consider using Gravity Forms. It's commercial but only $39 per site and it's one of the best $39 I've ever spent for WordPress development.


4

If you are looking to do a highly custom form, and want complete control over what happens, you can also create a new template for the page, and your form on that template would post back to itself. At the top of the template you could do something like this: <?php if($_POST) { // do something } ?> Not the most elegant, but it works.


4

If you are self-hosted, you won't have that button, as that is for Wordpress sites hosted by wordpress.COM See The difference between WordPress.com, WordPress, and WordPress.org Search for plugins for self-hosted Wordpress: http://wordpress.org/extend/plugins/search.php?q=contact+form&sort= http://wordpress.org/extend/plugins/contact-form-7/ is very ...


3

are you logged-in with all browsers? since add_action('wp_ajax_contact_form', 'ajax_contact'); only works for logged in users, so to fix it you need to change it: add_action('wp_ajax_nopriv_contact_form', 'ajax_contact'); if you want your function to work for visitors as well as users.


3

There are a good few form building plugins out there but the best by far is Gravity Forms Well worth the license fee and you can offset that cost when you bill your client. They will be able to create as many forms as they need then and attach them as widgets in a sidebar or in a blog post or on a standard wordpress page. In your case you need to see what ...


3

I've had this problem before. There's an easy way and a hard way to fix it. The easy solution: use a Linux server. The hard solution: write your own contact form. IIS 6 doesn't play nice with anything WordPress uses or does. It works on XAMPP because that's a LAMP stack running PHP, MySQL, Apache, and (usually, for Windows) Tomcat. When IIS runs those ...


3

Do not call your PHP files directly. This will break, because in some setups, the plugin directory might be located on another domain, and your file would operate without the WordPress context now. Use the current URL as form action URL (or admin-post.php), then test if the request is a POST request and handle the form submission. Then redirect back to the ...


2

Assuming there is no contact form plugin which matches your needs, the proper way to do it in wordpress is to write and add an appropriate page template to your theme which contains and handles your form. Once done you associate the page in which the form should be displayed with the page template and then your action path is simply "".


2

Probably the theme is using a page template. When you create a Contact page, on the right side, look for "Template" and select the Contact page template from the drop down menu.


2

<?php the_content(); ?> That's the function that displays everything you saved in Pages - > Contact Page. You just need to move that anywhere you would like. Just keep in mind the_content() must be between the while loop for it to work. <?php if (have_posts()) : while (have_posts()) : the_post(); ?> // Begins loop <?php endwhile; ?> // ...


2

This can be approached by using wp_dropdown_pages() with the child_of parameter. global $post; $args = array( 'child_of' => $post->ID ); wp_dropdown_pages( $args ); The variable name will be $_GET['post_id'] or $_POST['post_id'], depending on your form settings, you can change the name by altering the name parameter. The value of the ...


2

the easiest way i can think of is to use a plugin that creates a form by shortcode like contact form 7 for example and I'll break it in to easy steps. Create the form on your main site or what ever site you would like to manage the forms data through. Create a page template with no header or footer just a plain loop and call the_content. Create a new page ...


2

From Contact 7 Help: The spinning arrow icon shows up once I submit a form, but then nothing happens. This is most probably due to a conflict between plugins/theme. Try deactivating all other plugins and switching to the default theme. Also, I have gotten this behavior when you have built your blog at something like mysite/blog and then ...


2

Add me to the Gravity Forms supporters list. Of course it does a lot more than just contact forms. You should definitely check out the feature list and decide if it is worth your $39 dollars. It was a no-brainer for me and I bought the unlimited site developer license. The time that it saves me makes it worth it.


2

@janoChen, The problem could be that your email server is not using Domain Keys or a valid spf record DomainKeys is an e-mail authentication system that allows for incoming mail to be checked against the server it was sent from to verify that the mail has not been modified. This ensures that messages are actually coming from the listed sender and allows ...


2

If you are unsure about something i wrote here: Please use a dictionary english/turkish. What do you think about it? Possible? Yes. when we reply to comment, wordpress will send that reply as e-mail. You will have to use some sort of comment notification for this. This would then send an e-mail if you posted a reply to the "comment". and ...


2

I also (ab?)use comments for "private" replies to posts, like product inquiries, suggestions, answers to contests, ... The advantage is that they are stored in the database and displayed in the interface without extra code from me (sometimes I add a filter to improve the formatting). Spam filtering and e-mail notifications are easy extras. I think it is ...


2

Go to your WP admin section, and under Apperance, there should be a Theme Options section, see if there is a place to set the email there. If not, see if the developer has provided some documentation.


2

Disable all other plugins. Use the default theme. Try again. If it doesn't send, try sending to a different (eg gmail) address. If that still doesn't work, verify that sendmail is installed. If it is, check and see if a basic sendmail php script will work. If that still doesn't work or sendmail isn't installed, you may need to contact your host regarding the ...


2

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 );


1

How about using a plugin like contact form 7 or gravity forms instead? Otherwise, just have the page with the form do the form processing and submit the form to the page it's currently on. You'll need to register the templates correctly and what not, but that's as simple as putting /* Template Name: Your Template Name */ right after the opening PHP tag in ...


1

One way to accomplish this is to setup two pages, with two page templates, one with your form code and the other with your mail code. The form action would point to the permalink of the page whose template hosts the mail code. That said, I'd actually recommend using a plugin like Contact Form 7 instead. It's highly modular and customizable and is a major ...


1

It is because you are overidding your values in custom.js: $('#quickName').val('your name'); $('#quickEmail').val('your email'); $('#quickComment').val('your message'); Remove these lines and you should be good to go.


1

You should use a nonce to protect yourself from CSRF attacks. Even though you're not sending anything to the database, I'd suggest using some of the built in data validation functions (there is even a is_email function for you to use!) to strip out any HTML from your email. esc_html( striptags( $your_email_content ) ), for instance. You could also ...


1

You can send a copy of the mail to the sender using Contact Form 7. If you require their email use the second mail option and then put the name tag exp: [example-tag] that you used in creating the form in the receiver part of the mail. Here are some screen shots below to illustrate what i mean: Here is your basic Contact Form 7 form. You will notice that ...


1

Ive done this before using both contact form 7 and Grunion Contact Form plugins, when using contact form 7 i created a new tag to send the email to the post author: //contact form 7 author email wpcf7_add_shortcode('author_email', 'wpcf7_expert_email_shortcode_handler', true); function wpcf7_expert_email_shortcode_handler($tag) { if (!is_array($tag)) ...



Only top voted, non community-wiki answers of a minimum length are eligible