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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.