Using contact form 7 with easy fancybox [closed]
Was a simple setting option in the Fancybox settings: “close fancybox if content clicked”… DOH
Was a simple setting option in the Fancybox settings: “close fancybox if content clicked”… DOH
Try with this instead : wpcf7_add_shortcode(’bouton’, ‘shortcodes_in_cf7_handler’, true); function shortcodes_in_cf7_handler($atts) { //code for shortcode } You should be able to use shortcode in wpcf7 now.
Contact Form 7 has built in Special Mail Tags: [_post_id] [_post_title] If you can insert the Contact Form into “The Loop”, Contact Form 7 will automatically pull this information. If it is indeed in the loop, you can use Contact Form 7 – Before Send Mail Hook – get the post ID from the form, … Read more
I’ve looked for this some time ago. Best thing you can do is change the default contact form. Filter you can use: wpcf7_default_template Info can be found in contact-form-7/includes/functions.php file line 63 The filtered variable is: $template=”<p>” . __( ‘Your Name’, ‘contact-form-7’ ) . ‘ ‘ . __( ‘(required)’, ‘contact-form-7’ ) . ‘<br />’ . … Read more
From what you have shown, downloadform.php never loads WordPress, hence naturally do_shortcode() is not available. You need to implement your AJAX using this Codex article: http://codex.wordpress.org/AJAX_in_Plugins Another alternative I would suggest is loading the contact form in a hidden div during the initial page load and then display the hidden div when users click whatever … Read more
If you’re using AJAX to submit your contact form 7 data ( which is turned on by default ) you won’t be able to redirect using the wpcf7_before_send_mail hook. You have a few other options though: 1) Turn off WPCF7 AJAX which is packaged into an entire JS flag. This will also turn off JS … Read more
The problem you are encountering is that WordPress and your browser are interpreting everything after the “#” as a client side hash. In other words, PHP and WordPress never see the “?tier=Test1” bit. There are few ways to fix the issue though I’m not sure which will be most efficient in your situation: 1) Trigger … Read more
For sending in mails you can use below code: add_filter( ‘wpcf7_special_mail_tags’, ‘show_bill’, 10, 3 ); For more details please follow below links: Custom shortcode in emails Short code in form Contact form 7 custom shortcodes Thanks!
This could be outdated but I suggest turning on your debug_log and print the following code in the before_send_mail hook: error_log( print_r( $submission, 1 ) ); That will give you an idea of what you’re dealing with. The below may be outdated but I think what you need to modify is the $submission->mail array.
The issue very well may be noConflict. By default whenever WordPress enqueues jquery it runs in a noConflict mode which means that it doesn’t provide an alias for jQuery where the default is $ as you have in your question. See this Dev Resource comment: When you enqueue script that is dependent on jQuery, note … Read more