Title: get_row_layout returning empty string
Last modified: August 31, 2016

---

# get_row_layout returning empty string

 *  Resolved [acodesmith](https://wordpress.org/support/users/acodesmith/)
 * (@acodesmith)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/get_row_layout-returning-empty-string/)
 * In regards to Field Types -> Flexible Content:
    - The flexible content object is missing value.
    - The function to check the content type `get_row_layout()` returns an empty
      string.
    - The function is looking for the field called `acf_fc_layout`
    - `plugins/advanced-custom-fields-pro/api/api-template.php` line 906
 * Usage:
    `if( get_row_layout() == 'table' )`
 * [https://wordpress.org/plugins/advanced-custom-fields-table-field/](https://wordpress.org/plugins/advanced-custom-fields-table-field/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * (@jonua)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/get_row_layout-returning-empty-string/#post-7206999)
 * The Plugin provides a field not a row-layout. You can get the value of an table
   field inside a row-layout with get_sub_field( ‘your-table-field-name’ );
 *     ```
       if ( get_row_layout() == 'flex-content-layout-name' ) {
   
           $table_data = get_sub_field( 'your-table-field-name' );
       }
       ```
   
 * More about get_sub_field() [https://www.advancedcustomfields.com/resources/get_sub_field/](https://www.advancedcustomfields.com/resources/get_sub_field/)

Viewing 1 replies (of 1 total)

The topic ‘get_row_layout returning empty string’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields-table-field/assets/icon-256x256.png?
   rev=1962986)
 * [Table Field Add-on for ACF and SCF](https://wordpress.org/plugins/advanced-custom-fields-table-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields-table-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-table-field/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Johann Heyne](https://wordpress.org/support/users/jonua/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/get_row_layout-returning-empty-string/#post-7206999)
 * Status: resolved