Title: Plugin error in CF7
Last modified: January 10, 2019

---

# Plugin error in CF7

 *  [iancumarian](https://wordpress.org/support/users/iancumarian/)
 * (@iancumarian)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/)
 * Hello!
 * First of all, thanks for the plugin, it’s great, really good work.
 * I need your help, the plugin works perfectly, but when i insert it in CF7 it 
   doesn’t load correctly, for example:
    – instead of “add your file” button, there’s
   a “${label}” – the $ button opens the browser window, but doesn’t “attach” the
   file – the transfer button doesn’t work.
 * I mention that i put the “add filter” function to the functions.php so that the
   CF7 could load the ozpital shortcode.
    — add_filter( ‘wpcf7_form_elements’, ‘
   mycustom_wpcf7_form_elements’ ); function mycustom_wpcf7_form_elements( $form){
   $form = do_shortcode( $form ); return $form; } —
 * I made an example page with the contact form and below the plugin alone which
   works perfectly.
 * Thank you.
    Regards, Iancu Marian.
    -  This topic was modified 7 years, 5 months ago by [iancumarian](https://wordpress.org/support/users/iancumarian/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-error-in-cf7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [skillful058](https://wordpress.org/support/users/skillful058/)
 * (@skillful058)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11097693)
 * Got the same problem unfortunately.. Now I know how to change the faulty text
   by jQuery but that does not bring the functionality of the plugin back 😛
 * Would be very great to have this fixed.
 *  Thread Starter [iancumarian](https://wordpress.org/support/users/iancumarian/)
 * (@iancumarian)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11102527)
 * Hi!
    Thanks for sharing. Can you tell me, please, what theme and/or page builder
   do you use?
 *  [skillful058](https://wordpress.org/support/users/skillful058/)
 * (@skillful058)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11102528)
 * I use the APEX theme from Sonaar.io. Page builder = WPBakery
 * EDIT: Seems like OP has removed his CF7 on the page, I just set one up on my 
   page so you can see the error:
 * [http://oyosounds.com/mixing-mastering/](http://oyosounds.com/mixing-mastering/)
 * You can now see it. I’ve added your code to my functions.php to activate custom
   shortcodes inside CF7, namely:
 * // Shortcode inside CF7
    add_filter(‘wpcf7_form_elements’, function($form) { 
   return do_shortcode($form); });
    -  This reply was modified 7 years, 5 months ago by [skillful058](https://wordpress.org/support/users/skillful058/).
    -  This reply was modified 7 years, 5 months ago by [skillful058](https://wordpress.org/support/users/skillful058/).
      Reason: needed to provide page for demonstration
 *  [skillful058](https://wordpress.org/support/users/skillful058/)
 * (@skillful058)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11108735)
 * Coded some workarounds for myself, my case is solved. Don’t know about OP though!
 *  Thread Starter [iancumarian](https://wordpress.org/support/users/iancumarian/)
 * (@iancumarian)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11108825)
 * Can you please tell me what you did?
 *  [elgui](https://wordpress.org/support/users/elgui/)
 * (@elgui)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11113300)
 * Same problem here. It would be great for me too to know how you fixed it. Thank
   you !
 *  [greyhood](https://wordpress.org/support/users/greyhood/)
 * (@greyhood)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11142541)
 * Same issue as OP, anyone know the solution?
 *  Plugin Author [ozpital](https://wordpress.org/support/users/ozpital/)
 * (@ozpital)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11145901)
 * Ok, I’ve investigated. Thanks for your patience (I don’t check here often, [@greyhood](https://wordpress.org/support/users/greyhood/)
   found me on Twitter and DM’d me).
 * This isn’t going to work easily. You’re essentially nesting a form inside a form
   and WordPress cleans it up by removing the nested `<form>` element. I expect 
   the browser will have issues as well even if it got that far as to display the
   ozpital-wpwetransfer form inside the CF7 form.
 * In the short term, don’t include the `[ozpital-wpwetransfer]` shortcode in your
   CF7 form. You’ll have to add the `[ozpital-wpwetransfer]` shortcode along side
   your CF7 shortcode in your post/page content instead. eg: `[ozpital-wpwetransfer][
   contact-form-7 id="02" title="A contact form"]` . That will fix the problem.
 * Sorry for the bad news but there is clear demand for a CF7 wetransfer plugin 
   so I’ll work on a solution as soon as I can so you can all just drop in a shortcode
   into CF7 and it magically just works. Bare with me. It will land sooner rather
   than later, maybe a couple of weeks from now.
    -  This reply was modified 7 years, 4 months ago by [ozpital](https://wordpress.org/support/users/ozpital/).
    -  This reply was modified 7 years, 4 months ago by [ozpital](https://wordpress.org/support/users/ozpital/).
 *  [skillful058](https://wordpress.org/support/users/skillful058/)
 * (@skillful058)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11148788)
 * Oh sorry guys, totally forgot to reply. Okay, so basically the shortcode inside
   CF7 is not working (yet) and that sucks. But think in solutions, not in problems:).
 * I’ve added the ozpital shortcode just above my CF7 shortcode and in the CF7 form
   itself I’ve added the wetransfer_url box with the required option selected. I
   chose for hiding this “wetransfer_url” box by using CSS. This way it seems like
   the wetransfer upload thing is part of the form while it is actually not. Downside
   is you can only place the WeTransfer upload box above or underneath your CF7 
   form, not inside. Because the required option for “wetransfer_url” is selected,
   the form will not send in case files are not added (since the wetransfer url 
   will not be generated, therefore the wetransfer_url box is not filled in).
 *  [greyhood](https://wordpress.org/support/users/greyhood/)
 * (@greyhood)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11151522)
 * [@ozpital](https://wordpress.org/support/users/ozpital/) [@skillful058](https://wordpress.org/support/users/skillful058/)
   ok thanks guys
 * Yeah I had it working outside the contact form which is still great, but of course
   it would have been nice to have it near the end of a form.
 * Not that it matters but just as an example, you have a form when people specifically
   upload items, the widget is perfectly fine to be above the form inputs.
 * However, with a form when uploads are optional it’s nice to have the uploaded
   near the end of the form, that’s all. etc. etc.
 * Appreciate the help

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Plugin error in CF7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ozpital-wetransfer_7a7a7a.svg)
 * [Ozpital WPWeTransfer](https://wordpress.org/plugins/ozpital-wetransfer/)
 * [Support Threads](https://wordpress.org/support/plugin/ozpital-wetransfer/)
 * [Active Topics](https://wordpress.org/support/plugin/ozpital-wetransfer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ozpital-wetransfer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ozpital-wetransfer/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [greyhood](https://wordpress.org/support/users/greyhood/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/plugin-error-in-cf7/#post-11151522)
 * Status: not resolved