Support

Account

Home Forums Add-ons Flexible Content Field have_rows is returning false Reply To: have_rows is returning false

  • have_rows() is looking for a field name. You are using the return array of the field instead.

    
    // use this
    if (have_rows('content_block', $post->ID)):
    // or this
    if (!empty($blockContentField)):