I’ve been trying to follow examples to show social media fields as a linked icon for some time (including examples in this forum) and it just hasn’t been happening, and I dont know why.
For example, with facebook:
$fb_page = xprofile_get_field_data(‘Facebook’, $UserID);
if($fb_page) { ?>
< a href=”http:facebook.com/”<? php echo $fb_page ? >/” target=”_blank” title=”Facebook”>HI</ a> <? php
}
This code was just to test if I could even just hyperlink text to facebook.com. But it is not working. Instead, the following is output on the front:
myFacebook.Field/” target=”_blank” title=”Facebook”>HI
What is going wrong?
Wordpress:5.1.1
Buddypress: 4.2
theme: twentyseventeen