I'm new to PHP and confused about this bit ..
When I have this it shows the data
<?php foreach ($profile as $p):?>
<?php echo $profile->custom_url;?>
<?php endforeach?>
But when I do this I get " Trying to get property of non-object"
<?php echo $profile->custom_url;?>
yet I have seen code where it's not in a foreach loop and the data displays. Can anybody help explain why that is?