Relationship field not showing all data
-
I have a pod with one field that has a relationship to another table-based pod. The relationship field is a multiselect so an array but whenever I do the below
$params = array( 'limit' => -1, 'orderby' => 't.ID DESC', 'select' => 'company_sectors.post_title as sector,t.*', ); $companies = pods( 'companies' )->find($params); while ( $companies->fetch() ) { $company = $companies->data->rows; } return $company;
the relationship field returns only the first object. How do I resolve this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Relationship field not showing all data’ is closed to new replies.