Home › Forums › Bug Reports › Maybe error in documentation page › Reply To: Maybe error in documentation page
I will see what I can do about bringing this to the developer’s attention, but can’t guarantee anything will be done about it. Thanks for the feedback.
I’m not the writer or maintainer of the documentation. The following are just my own tjoughts.
Anywhere you see something like: $posts = get_field('relationship_field_name');
it should be assumed that this code needs to be inside of “The Loop”. The documentation here is only a reference to how to use things in the most general way.
It would be extremely difficult for Elliot to include notes about all conditions that may arise, like putting the main WP loop inside a loop for a custom field. Something like this would cause errors and problems even without ACF where one post loop is nested inside another.
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.