Title: mcrenas's Replies | WordPress.org

---

# mcrenas

  [  ](https://wordpress.org/support/users/mcrenas/)

 *   [Profile](https://wordpress.org/support/users/mcrenas/)
 *   [Topics Started](https://wordpress.org/support/users/mcrenas/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mcrenas/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mcrenas/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mcrenas/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mcrenas/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mcrenas/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BuddyPress Follow] Sorting post index by users you're following using wp_query](https://wordpress.org/support/topic/sorting-post-index-by-users-youre-following-using-wp_query/)
 *  [mcrenas](https://wordpress.org/support/users/mcrenas/)
 * (@mcrenas)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/sorting-post-index-by-users-youre-following-using-wp_query/#post-4724064)
 * I have a very similar question so i post in your topic.
    Iam trying to show only
   the posts of users that a user is following
 *     ```
       if ( bp_has_activities( array(
                                'user_id' => bp_get_following_ids()
                               ) ) ) :
   
                             $args = array('user_id' => bp_get_following_ids());
                             $loop = new WP_Query($args);
   
       		      while ( $loop -> have_posts() ) :
       					$loop -> the_post();
       ```
   
 * This custom loop i am trying to pass has not any results. It just shows all posts.
   What am i missing?
    Thank you in advance for any help, and ofcourse thank you
   for this beautiful plugin you made! [https://wordpress.org/plugins/buddypress-followers/](https://wordpress.org/plugins/buddypress-followers/)

Viewing 1 replies (of 1 total)