Home › Forums › Add-ons › Options Page › Option repeater field and custom post type › Reply To: Option repeater field and custom post type
Are you using relationship fields for these.
// get the relationship field
$posts = get_field('relationship_field_name');
// then loop over the relationship and get values from the related posts
foreach ($posts as $post) {
$some_value = get_field('field_on_related_post', $post->ID);
}
Let me know if I’m misunderstanding what field type you are using here.
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.