Hello Minesh,
Idealy, it would be great if related posts could be ordered by the order applied to the instances of the custom field (by drag an drop).
Do you think it is possible?
Thank you

Minesh
Supporter
Languages:
English (English )
Timezone:
Asia/Kolkata (GMT+05:30)
For instance with the following post:
- hidden link
How you want to display the results, 167 and 52 or 52 and then 167.
Can you set order with 3-5 Ids and tell me in what order you want to display the result.
Hello Minesh,
Really sorry for my late reply.
I've created 3 more test articles (hidden link).
This one - hidden link - has 4 related posts:
ID181, ID50, ID52, ID167.
What I would like, is to have the related articles in the right column in the same order as the one in the custom field (please see attached screen).
I noticed that the desired order is that of the field displayed in the custom template ([types field='insight-related-post-id' separator=', '][/types]), before the post title.
Thank you

Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Dominique,
As Minesh is currently unavailable due to vacations days I will be handling this thread for him.
Unfortunately no it won't be possible to retain the sort order as depicted in your custom field. This is because the sortable attribute from this post field is not present on the post itself.
What I mean is that you can only sort the view based on the attributes of the post itself.
Please let me know if this provides some clarity for you.
Thanks,
Shane
Hello Shane,
Thank you for your support.
Just to be sure before closing this topic, I would like to notice that the order of the IDs is reflected when the field is displayed in a content template in my case.
Isn't there a clue for a solution to manage related posts order?
Regards

Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Dominique,
I did some more reading on this one for you to see if we can actually perform the sorting.
The good news is that I was able to get it to work when I adjusted the orderby settings in the view hook to sort the values by the direct list that is being provided to the view.
It should be fine now. Can you confirm this on your end.
Thanks,
Shane
Hello Shane,
I've tested. It is working well.
Thank you very much to Minesh and you.
May I suggest asking the Toolset dev team to add equivalent functionality (in a more convenient way than manipulating IDs).
I think a lot of users need to be able to link articles manually or of the same content type.
Adding options that go along with this when creating a View would be really great.
My issue is resolved now. Thank you!