Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: text in User-Profile: some words are linked, others are not ?


Gianfranco
Participant

@gian-ava

One thing that the code doesn’t do is turning off auto links for url’s.

I want members to fill some fields with their personal social profiles links: Facebook, Twitter, Personal Homepage.

I’d like to link it from the words: “Facebook”, “Twitter”, “Personal Homepage”, without having http://facebook.com/user, ect.

Now, I tried something like this within the profile fields loop:

<li><a href="<?php echo bp_the_profile_field_value() ?>"><?php bp_the_profile_field_name() ?></a></li>

But of course it messes everything up because the function “bp_the_profile_field_value()” generates a <a href="..."> itself.

Is there a workaround for this?

Skip to toolbar