Home Forums General Issues Relationship Field Entries Not Showing Reply To: Relationship Field Entries Not Showing

  • Hi John,

    Thanks for the reply. I was just about to come back here and note that, indeed, the issue was a collision in similarly named taxonomies (early try, but inappropriate) and the relationship fields. Once I cleared that up, it’s working as expected.

    If I may, one followup question?

    Use Case 1: A query loop for a CPT1 Reviews content layout is pointing to CPT2 People. And for each of the three relationship fields, there’s a PHP function to query the relationship field and return data (a list of People post titles). Now working.

    Use Case 2: I should be able to leverage the same technique? That is, a content layout for CPT2 People a query loop that points to CPT2 Reviews. And for each of the three relationship fields, a PHP function can query the same relationship fields and return data (a list of Review post titles). The same PHP functions in Use Case 1 don’t appear to work. A specific PHP script also didn’t work.

    In the ACF relationship field I’ve made sure “Filter by Post Type” is set to both CPT2.

    Anything else that might affect this? (I’m assuming that this is not a use case for bi-directional relationships, which appears to be more about enabling data changes to flow back and forth.)

    I’m really just asking if the theory of leverage the relationship fields in CPT1 Reviews is correct here and it’s just a matter of tweaking the PHP until the return in a CPT2 People is accomplished.

    Thanks again!