using 1 form shortcode (si or cf7) for all multisite sites [closed]

A Must Use plugin could do the work. This is just an outline and has to be fully tested: add_shortcode( ‘global_form’, ‘shortcode_wpse_87634’ ); function shortcode_wpse_87634() { // Main site, ID=1, that has the form switch_to_blog( 1 ); // Do your stuff $my_stuff = something(); // maybe do_shortcode // Back to original site restore_current_blog(); // Return … Read more

Horizontal (columned) Contact form 7 and acceptance field on devices

You need a two-third column CSS and a layout like this: ———————————————- | .two-third | .one-third | ———————————————- | .one-half | .one-half | | —————————–| Submit | | Name column | Email column | button | —————————–| column | | Acceptance column | | ———————————————- So the CSS rules: (the … means your code and … Read more

show image in mail contact form 7 [closed]

As per my comments, it seems you are trying to attach images to emails rather than ‘show’ them. Since you have [file* image filetypes:jpg|png|gif] what you need to do is put [image] in the ‘File Attachments’ box in the Contact Form 7 settings. This is from the Contact Form 7 File Uploading and Attachment doc.

Creating a contact form without a plugin [closed]

This is my very simple implementation of contact form: class WPSE_299521_Form { /** * Class constructor */ public function __construct() { $this->define_hooks(); } public function controller() { if( isset( $_POST[‘submit’] ) ) { // Submit button $full_name = filter_input( INPUT_POST, ‘full_name’, FILTER_SANITIZE_STRING ); $email = filter_input( INPUT_POST, ’email’, FILTER_SANITIZE_STRING | FILTER_SANITIZE_EMAIL ); $color = filter_input( … Read more

Adding a hyperlink to the checkbox in the contact form 7 [closed]

It should work like said in my comment but maybe an even better way would be to use the acceptance filed-type that is build especially for that kind of checkboxes. [acceptance term_and_conditions class:required] I can confirm I have read and accepted the <a href=”http://www.your-domain.com/terms-page”>Terms and Conditions</a>.[/acceptance] In the contact form 7 edit page go to … Read more

How to choose email recipient in Contact Form 7 based on address state input in form and save to database [closed]

Thanks to Michael Simpson, from Contact Form DB. The solution is listed (kind of hidden) on the Contact Form DB website in the article – CF7 Menus with Pipes Add to functions.php function myFilter($formData) { // Change $formData return $formData; // be sure to return it } add_filter(‘cfdb_form_data’, ‘myFilter’); function location_form_handler($formData) { $formName=”ExtendedContact”; // change … Read more