SHARE
TWEET

Untitled

a guest Feb 2nd, 2013 24 Never
  1. function bp_custom_get_member_list_xprofile_data( $field ) {
  2.  
  3. global $site_members_template;
  4.  
  5.  
  6.  
  7. return xprofile_get_field_data( $field, $site_members_template->member->id );
  8.  
  9. }
  10.  
  11.  
  12. function custom_position (){
  13.  if ( $position = bp_custom_get_member_list_xprofile_data('Position') ) :
  14.  
  15.  echo $position;
  16.  
  17. endif;
  18.  
  19. if ($position == 'Actor') :
  20.  
  21. echo '2';
  22.  
  23. else :
  24.  
  25.         echo '1';
  26.  
  27.  
  28. endif;
  29. }
RAW Paste Data
Top