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?
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.
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
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?
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.
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.