Home › Forums › General Issues › Deeply nested post types › Reply To: Deeply nested post types
I thought it was needed, after reading the Relationship documentation. I’m still working on my fluency in PHP, so I don’t always catch when something looks nonsensical 😉
The code you pasted looks really good, but sadly when I use it I get the same “Trying to get property of non-object” error for every call to Town, County and State.
I have my relationship fields set to Post Object, so I’m not sure how they can’t be objects…
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.