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 ...


6

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.


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

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 ...


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

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.


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

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

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

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

<?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

@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

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 ...


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 ...


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

Basically what you're looking to do is create a separate page within a WordPress site that (I'm sort of guessing here) you're not creating within WordPress itself, but you want to pull WordPress data. There's a "cheater" method and an officially sanctioned method to do what you want. The "cheater" method is to call wp-load.php from your separate PHP file. ...


1

If the contact page is identified solely by the associated template, you can query for a page with the template name in meta key _wp_page_template: $args = array( 'post_type' => 'page', 'posts_per_page' => 1, 'meta_query' => array( array( 'key' => '_wp_page_template', 'value' => ...


1

You're in luck. Wordpress stores a pages template value in a hidden custom field not visible in the backend but very much exists called, "_wp_page_template". I created the following function which should return an array or a single key of data for you. I put the code on Github Gist here because it's a little long. I did some testing and it seems to work! ...


1

No, that's not possible. You can find a list of providers for embeddable coontent in wp-includes/class-oembed.php: '#https?://(www\.)?youtube.com/watch.*#i' 'http://youtu.be/*' 'http://blip.tv/*' '#https?://(www\.)?vimeo\.com/.*#i' ...


1

I've used the Gravity Forms plugin and its post form-submission hook to fire off a server-side web2lead curl request in wordpress before now. Wasn't too difficult. Essentially your web2lead form submission is purely server-side so the regular gravity forms entry logging (including IP etc...) just carries on working. You get your data in both WP and SF.


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


1

Add this at the start of your process.php file to get access to get_option and other wordpress functions: define( 'WP_USE_THEMES', false ); require('wp-blog-header.php'); You might have to change the path to wp-blog-header.php.


1

Expanding on @birgire's and justifying @Patricia Walton's answer, if you only add add_action('admin_head-user-edit.php','remove_website_row_wpse_94963'); it will only be gone from the page where admin is editing a profile. To also make it disappear when a user edits its own profile add also ...


1

You are actually closer in your first attempt. My recommendation would be to create a folder called "scripts" in the WP root and put your PHP script files in here as well as your attachment(s). You will then need to declare the full path in your action attribute as the script does not now share the same file path as in your "flat HTML file structure". ...


1

-- Append parent_ to all your top level options' values like: parent_Course A, parent_Course B -- Also add extra options with the value as "endparent" something like below structure parent_Course A: course 1 course 2 course 3 course 4 endparent parent_Course B: course 1 course 2 course 3 endparent Code: // contact us form - change out ...



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