Hi
I'm trying to access a category set within a perch_collection, but when I run echo all that's output is the word Array?
Code
- $wlrs_cats = perch_collection('Opportunities', [
- 'skip-template' => 'true',
- 'return-html' => 'true',
- 'filter' => 'opp_name_slug',
- 'match' => 'eq',
- 'value' => perch_get('s'),
- ]);
- echo $wlrs_cats[0]['content_type']; // Opportunity categories - outputs 'Array'?
- echo $wlrs_cats[0]['opp_name']; // Opportunity name - outputs name as expected.
How do I output the full Array, I'm expecting to echo a string of all the selected categories.