Home › Forums › Front-end Issues › Extracting Post Object data from within a Repeater › Reply To: Extracting Post Object data from within a Repeater
Hey guys, this looks like the data I’m after, but I don’t get too deep into programming. If one of you could clarify, I’d really appreciate it. Here’s my situation:
I have a repeater field called favorite_cars. In this field, I have a post object field called select_car. This is linking to a custom post type I have with it’s own set of ACF fields. I want to access those. I can with a normal post object chunk of code, but don’t know how to do it within a repeater field.
So again, to summarize:
Repeater: favorite_cars
Post Object Field: select_car
Custom Post Type used in Post Object filter: carsandtrucks
ACF field in the carandtrucks CPT: main_image
So I’m trying to pull say the picture of a Corvette (main_image) that’s in the carsandtrucks CPT from a select post object field named select_car in the repeater field called favorite_cars.
Hope that makes sense. Thank you!
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.