Support

Account

Home Forums Add-ons Flexible Content Field get_post_meta for a repeater field in a flexible content field? Reply To: get_post_meta for a repeater field in a flexible content field?

  • Hi @teun

    That’s because your code only try to get the second row:

    $meta_key = 'flexibele_content_1_menukaart-repeater_'.$i.'_categorie';

    Please notice the index “1” in your code. Because the index starts from “0”, if you set it to “1” you will only get the second row.

    Could you please let me know why you can’t use ACF functions to get the flexible content value? This page should give you more idea about it: https://www.advancedcustomfields.com/resources/flexible-content/.

    Thanks 🙂