I am attempting to pull several ACF fields from a user relational field from a page. I’m getting an error notice that what I’m echoing should be an array not an object. Can someone help?
Current code below:
https://gist.github.com/anonymous/a72b14ecc18e26fe08d5
Hi @mrpritchett
Can you please debug your code to find out why the PHP error is occuring?
Try this:
$principals = get_field('practice_principal_select');
<?php
echo '<pre>';
print_r($principals);
echo '</pre>';
?>
What is the printed data?
What is the exact PHP error?
Yea, what todo with an array when using multi-users … hmm