Support

Account

Home Forums General Issues How can I display the values of a repeater-field from a post object? Reply To: How can I display the values of a repeater-field from a post object?

  • pls check foreach ($materialien_repeater[‘materials’] as $material) {
    $imgUrl = $material[‘link-composition’][‘img-url’];
    $linkUrl = $material[‘link-composition’][‘link-url’];
    $copyright = $material[‘link-composition’][‘copyright’];

    // Output or process values as needed
    echo “Image: $imgUrl, Link: $linkUrl, Copyright: $copyright<br>”;
    }