Skip to:
Content
Pages
Categories
Search
Top
Bottom

Replace xprofile data with image


  • barrettcreative
    Participant

    @barrettcreative

    I have a profile field that allows users to enter a link to their facebook page. What I would like to do instead is replace the output with an specific image, and have the data be the link.

    How would I go about putting this in the profile loop?

Viewing 1 replies (of 1 total)

  • barrettcreative
    Participant

    @barrettcreative

    Ok, I can get the data to display by using the following:

    <a href="<?php bp_profile_field_data('field=Facebook'); ?>"><img src="<?php bloginfo('stylesheet_directory');?>/_inc/images/facebook.jpeg"></a>

    I suppose I could hard code every profile field I wanted to into the member-header, but if anyone has found a way to make this part of the loop, I’m all ears.

Viewing 1 replies (of 1 total)
  • The topic ‘Replace xprofile data with image’ is closed to new replies.
Skip to toolbar