Thanks @rockfire
What a quick support! 🙂
I’ve solved the issue.
I cleaned up and re-installed with the following steps.
1. Removed all the transient of WRC – I used the plugin “Transients Manager”
2. Removed db table “wp_wrc_caches” and “wp_wrc_relations”
3. Removed all the wrc related rows in wp_option table
4. Re-install WRC
I’ve just figured out a solution!
When we load cf7 via ajax, the action attr of the form becomes “admin-ajax.php#…..”, and that’s causing the issue!
To fix this issue, I applied .attr(‘action’, ‘#’) to the form.
Here is the js:
+(function ($) {
$(function(){
$.ajax({
type:"POST",
url: ajaxurl,
cache: true,
data: {
'action':'ajaxCF7',
timeout: 12000
}
}).done(function(data){
$('#content').append(data)
.find('.wpcf7 > form').attr('action', '#').wpcf7InitForm();
});
});
})(jQuery);
-
This reply was modified 9 years, 1 month ago by mitsuki.