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

Untitled

By: a guest on Mar 25th, 2013  |  syntax: PHP  |  size: 0.41 KB  |  hits: 40  |  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. <?php
  2.         $args = '';
  3.         $user_ids = custom_profile_search();
  4.         $args = 'include=' . implode(',', $user_ids);
  5.         $args .= '&per_page=100&max=100';
  6.        
  7.         // at this step $args looks like this 'include=1,13,14,16,17,19,20,21,22&per_page=100&max=100'
  8.  
  9.         if (bp_has_members($args)):
  10. ?>
  11.         <?php while ( bp_members() ) : bp_the_member(); ?>
  12.                 // over here this one particular member get's doesn't show up
  13.         <?php endwhile; ?>