Title: Field wrapper not working correctly
Last modified: March 24, 2022

---

# Field wrapper not working correctly

 *  Resolved [JamesBates](https://wordpress.org/support/users/jamesbates/)
 * (@jamesbates)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/field-wrapper-not-working-correctly/)
 * The wccpf_before_field_start and wccpf_after_field_end actions are not wrapping
   the fields properly. They are being added to wccpf-fields-container but all my
   fields are in the wccpf-fields-group-1 element.
 * I am using a variable product.
 * Here is a screenshot of the html:
 * > [View post on imgur.com](https://imgur.com/uXefPk9)
    -  This topic was modified 4 years, 1 month ago by [JamesBates](https://wordpress.org/support/users/jamesbates/).

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

 *  Plugin Author [Saravana Kumar K](https://wordpress.org/support/users/mycholan/)
 * (@mycholan)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/field-wrapper-not-working-correctly/#post-15493347)
 * I agree that its poorly designed.
    Everything is reworked with our upcoming release.
 * Meanwhile, pls use `wccpf_before_fields_rendering`filter.
 *     ```
       function custom_field_wrapper($_field, $_html) {
           return '<div class="test">'. $_html .'</div>';
       }
       add_filter("wccpf_before_fields_rendering", "custom_field_wrapper", 10, 2);
       ```
   
 * Let me know if that solved your issue.
 *  Thread Starter [JamesBates](https://wordpress.org/support/users/jamesbates/)
 * (@jamesbates)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/field-wrapper-not-working-correctly/#post-15495341)
 * That worked great.
    Thank you for the quick reply.

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

The topic ‘Field wrapper not working correctly’ is closed to new replies.

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [JamesBates](https://wordpress.org/support/users/jamesbates/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/field-wrapper-not-working-correctly/#post-15495341)
 * Status: resolved