Home › Forums › Front-end Issues › Get Relationship from another Relationship › Reply To: Get Relationship from another Relationship
Hi John. Thanks for the response. I’m still struggling to get this working but I think it’s more to do with my inexperience in how to correctly format the whole code. I wasn’t using brackets for the if and foreach statements in my code, but you have in yours and you did use some different variable names to mine, and I’m also unsure what $artist_id is referring to in your code. Is that replacing $artist in my code?
I’d really appreciate it if you could post the whole code as you think it should be based on combining my code with your suggested code.
Which return value should I be using for the relationships too? Post Object or Post ID?
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.