Home › Forums › Add-ons › Repeater Field › True / False question › Reply To: True / False question
Hi @bgomski
So essentially, you care trying to manage all page’s content via a repeater field on Page A?
When on Page B
, you can load all of Page A
using the get_field function. Please note you will need to include the $post_id parameter to point to Page A
.
Now that you have Page A
data, you can loop through the rows. You have a true/false field and a text field, so just loop over the rows and if the checkbox field is ticked, then use the text value.
Easy.
Please read the repeater field docs to get a better idea of the code.
Thanks
E
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.