If I have a field key socialfacebook
and I want to return just facebook
- is this possible?
Many thanks, this is now my working code
<?php $socialicon = substr($site->{$field}()->key(), 6); ?>
If I have a field key socialfacebook
and I want to return just facebook
- is this possible?
Many thanks, this is now my working code
<?php $socialicon = substr($site->{$field}()->key(), 6); ?>