Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Field Linking

  • Avatar of wordpressfan
    wordpressfan
    Participant

    @wordpressfan

    In the default profile-loop, field data is linked so that you can click on “Chicago” and every member that lists “Chicago” as her location will be listed. However, linking is gone when I use the following to extract data from specific fields:

    echo xprofile_field_data('field#');

    How do I retain the normal field data linking?

Viewing 3 replies - 1 through 3 (of 3 total)
  • It might be a better idea to use the xprofile data template loop http://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-profile-data-loop-bp_has_profile/ and put some IFs in so it only uses the fields you want to see?

    Avatar of wordpressfan
    wordpressfan
    Participant

    @wordpressfan

    The main problem is I’ve moved member profile data under left-menu, using inner-tube for activity, groups and friends. I’d need to move the following and probably reformat the field headers.

    <?php locate_template( array( 'profile/profile-loop.php' ), true ) ?>

    A secondary question would be placement of the if statement. I’m guessing preceding this line in profile-loop.php:

    bp_the_profile_field(); ?>

    (By the way, codex.buddypress.org is still inaccessible even after multiple screen refreshes.)

    Avatar of jantanner
    jantanner
    Participant

    @jantanner

    hey there,

    same question from here.

    any solution how to link this

    echo xprofile_field_data('field#');

    to a member search like the loop does it?

    thanks

    christoph

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

You must be logged in to reply to this topic.