Home › Forums › General Issues › Readout all values of a certain field › Reply To: Readout all values of a certain field
Hey James,
Thanks for your fast reply! Really appreciate it.
I was able to pass the post_id, but that just gives me one result.
I would like to fetch the values of all post_id’s from my custom field and put them into an array. Normally you do that with a for each, but loops don’t seem to work within the functions.php.
Best,
Jordy
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.