Home › Forums › General Issues › Query Relationship within Relationship › Reply To: Query Relationship within Relationship
Are you still looking for help with this? if yes, a couple of questions.
Is the customer field on the testimonial a Relationship field or a Post Object? Since I’m assuming that there can only be a single customer related to a testimonial it makes more sense to me that it would be a Post Object field which would return a single post object instead of an array.
If this is not the case can you do a dump of $testimonialCustomer
right after you get the field? Something like this would work`
echo ‘
'; print_r($testimonialCustomer); echo '
‘;
then post the results.
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.