Skip to:
Content
Pages
Categories
Search
Top
Bottom

Customize profile but keeping links


  • Daniele
    Participant

    @dabesa

    Hi guys,
    I’m customizing the profile page member-header.php adding some fields in there.

    I tried both commands:

    `bp_profile_field_data( ‘field=Location’ );
    echo xprofile_get_field_data( “Location”);
    `

    And they do indeed display the field value, but without the automatic linking normally added to the profile-loop.php output.

    I can’t figure out how to keep the links, how does it work?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

  • Daniele
    Participant

    @dabesa

    Anyone can help on that?


    shanebp
    Moderator

    @shanebp

    Take a look at xprofile_filter_link_profile_data() in bp-xprofile-filters.php
    I think you can call it directly.

    Or you can just build your own href strings.
    They’re very simple –

    `site_url() . /members/?s= . [ field_value] rel=”nofollow”> [ field_value]`

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customize profile but keeping links’ is closed to new replies.
Skip to toolbar