Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 6th, 2010  |  syntax: PHP  |  size: 0.29 KB  |  hits: 423  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function stwc_website_link() {
  2.   $data = bp_get_member_profile_data( 'field=Website' );
  3.   if ( $data )
  4.     echo "<span>Website: <a href='{$data}'>{$data}</a></span>";
  5. }
  6. add_action( 'bp_directory_members_item', 'stwc_website_link' );
  7. //Not the best code in the world but should do the job.