Re: Need to check if bp_profile_field_data() has data
My code snippet is indicative, and shows you the basics of what you need to do… You can’t just insert it verbatim. Did you edit my code snippet, and add your image code as needed? Did you place it in the correct place in profile-loop.php?
It may be because I used “else if” with colons, which apparently is invalid – try combing “else if” into one word “elseif”.
Generally, for an unexpected T_IF, you just need to go in and check your PHP is balanced / syntactically correct, but in this case it might well be the “else if” separation.
If you still have a problem… post your code (via pastebin). It’s impossible to know from the information you’ve given where you’ve inserted my snippet, what’ve you added, and consequently what’s causing the unexpected T_IF.