The form is submitted successfully, but the ajax response inserts the entire post body (including the “Message Sent” confirmation, etc.) where the form used to be, so the post content appears twice!
I know that can’t be right, but I noticed that grunion-ajax.php seems to grab the entire post content
$content = do_shortcode( $post->post_content );(grunion-ajax.php: 80)
for the ajax response and then inserts it into the form wrapper (like div#contact-form-id-1), and that would produce exactly the wrong behavior that I’m seeing.
- The topic ‘[Plugin: Grunion Ajax] duplicates the post body after the form is submitted’ is closed to new replies.