• Hello, I am trying to include a contact form inside of a WooCommerce product editor screen. My line of thinking so far has been something along the lines of this, added in functions.php.

    add_action( 'admin_head', 'add_contact_form_to_admin' );
    function add_contact_form_to_admin() {
      echo '<h2>Mail form</h2>';
      echo do_shortcode('[contact-form-7 id="6" title="Contact form 1"]');
    }

    This does display the form. After clicking the submit button, it refreshes the page, but no form is actually sent. I’ve tried other hooks, too.

    • This topic was modified 4 years, 8 months ago by jordanwebdev.
  • The topic ‘Is there a way to display a form in a post editor screen?’ is closed to new replies.