contact form in switch_to_blog
I’m currently working on a wordpress multisite, and I’m using a contact form 7 on my main site. My client wants to copy some of my contact form from the main site to the subsites pages newly created.
I use the switch_to_blog function of wordpress inside a page template and copied a contact form shortcode from the main site. The contact form is showing on the page I created but it is not working properly. The form is not processed.
My firebug is prompting this error:
“TypeError: data is null
var ro = $(data.into).find(‘div.wpcf7-response-output’); “
and the response is null
Do anyone of you could help me out of this problem?]
Thanks in advance
- The topic ‘contact form in switch_to_blog’ is closed to new replies.