# Custom Post Ranking in community feed and user feed

**URL:** <https://forum.social.plus/t/custom-post-ranking-in-community-feed-and-user-feed/828>\
**Category:** General\
**Created:** [July 20, 2023, 5:01pm UTC](https://forum.social.plus/t/custom-post-ranking-in-community-feed-and-user-feed/828 "2023-07-20T17:01:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustavo.oasis](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@gustavo.oasis](https://forum.social.plus/u/gustavo.oasis)\
**Post date:** [July 20, 2023, 5:01pm UTC](https://forum.social.plus/t/custom-post-ranking-in-community-feed-and-user-feed/828/1 "2023-07-20T17:01:14Z")

</div>

I would like to know if queryCommunityPosts and queryUserPosts has the Custom Post Ranking option and how to make it work, since I could only use it in queryAllPosts using the useCustomRanking property,

```auto
const FeedQueryTypes = {
    [PostTargetType.GlobalFeed]: queryAllPosts.bind(this, {
      useCustomRanking: isMostPopular,
    }),
    [PostTargetType.CommunityFeed]: queryCommunityPosts.bind(this, {
      communityId: targetId,
      feedType,
      useCustomRanking: isMostPopular,
    }),
    [PostTargetType.UserFeed]: queryUserPosts.bind(this, {
      userId: targetId,
      useCustomRanking: isMostPopular,
    }),
    [PostTargetType.MyFeed]: queryMyPosts.bind(this, {
      useCustomRanking: isMostPopular,
    }),
  };

```

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [July 21, 2023, 11:39am UTC](https://forum.social.plus/t/custom-post-ranking-in-community-feed-and-user-feed/828/2 "2023-07-21T11:39:58Z")

</div>

Hello, I would like to confirm whether you are referring to the custom post ranking here: [Custom Post Ranking - Amity Docs](https://docs.amity.co/social/feed/custom-post-ranking) ? If this is the case, please note that this feature applies only to the global feed.

For community and user feeds, the available option is the “sortBy” which you can find details about here: [Query Post - Amity Docs](https://docs.amity.co/social/posts/query-post)
