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?