Support

Account

Home Forums Add-ons Repeater Field Repeater field saved in content Reply To: Repeater field saved in content

  • Thanks for your hints.
    Did some digging and tweaking, and this code works

    
    $pasiPregatire = $_POST['acf']['field_58197932d0cff'];
    foreach ($pasiPregatire as $row) 
        {
            $image_id = $row['field_58197943d0d00'];
            $size = 'full'; // or the size you want to get
            $imageRet = wp_get_attachment_image($image_id, $size);
            $textRet = $row['field_58197952d0d01'];
            $retetaPas .= '<div>' . $imageRet . $textRet . '</div>';
        }
    $postContent = $_POST['acf']['field_54dfc94e35ec5'] . $retetaPas;
    

    I will work on something for nested repeaters.