Checking array against author id in loop

You actually want author__in, and you can use the array. You shouldn’t implode it: $query = new WP_Query( array( ‘author__in’ => $friendsIdArray ) ); As far as where in the Loop this goes, I’m not sure I understand. This occurs before creating your a Loop, not in it.

angularjs not displaying all posts

change this : .controller(‘Content’, function($scope, $http, $routeParams) { $http.get(‘wp-json/posts?type=property?filter[“posts_per_page”]=25&filter[“orderby”]=date&filter[“order”]=desc/’ + $routeParams.ID).success(function(res){ $scope.post = res; to this: .controller(‘Content’, function($scope, $http, $routeParams) { $http.get(‘wp-json/posts?type=property?filter[“posts_per_page”]=25&filter[“orderby”]=date&filter[“order”]=desc/’ + $routeParams.ID).success(function(res){ $scope.posts = res;