Title: Code Editor Field not working with Sub Fields
Last modified: July 27, 2022

---

# Code Editor Field not working with Sub Fields

 *  Resolved [samuelashbr00k](https://wordpress.org/support/users/samuelashbr00k/)
 * (@samuelashbr00k)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/code-editor-field-not-working-with-sub-fields/)
 * Hi, i was just wondering if the code editor field only supports “get_field”. 
   I have attempted to insert this field within a flexible content field however,
   it doesn’t seem to display anything if i use “get_sub_field”.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * (@hwk-fr)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/code-editor-field-not-working-with-sub-fields/#post-15936213)
 * Hello,
 * Thanks for the feedback!
 * The Code Editor field, like any other field, can be used as a sub field (within
   a Repeater or a Flexible Content).
 * I would recommend to make sure that you correctly used the `have_rows(): the_row();
   get_sub_field('my_sub_field');` syntax before using it.
 * Please refer to the [ACF Flexible Content documentation](https://www.advancedcustomfields.com/resources/flexible-content/#template-usage)
   for more code examples and explanations.
 * Hope it helps!
 * Have a nice day!
 * Regards.

Viewing 1 replies (of 1 total)

The topic ‘Code Editor Field not working with Sub Fields’ is closed to new replies.

 * ![](https://ps.w.org/acf-extended/assets/icon-256x256.png?rev=2071550)
 * [Advanced Custom Fields: Extended](https://wordpress.org/plugins/acf-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/acf-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/acf-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/acf-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/acf-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/acf-extended/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Konrad Chmielewski](https://wordpress.org/support/users/hwk-fr/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/code-editor-field-not-working-with-sub-fields/#post-15936213)
 * Status: resolved