First you need to find the partial view that renders the related post. This partial view is located in here \Views\Partials\uBlogsy\Post\uBlogsyPostListRelatedPosts.cshtml. When you in this file you need to add .OrderBy to the foreach loop so your code look like this.
Great to hear that it works with the sorting. I donĀ“t know how the feature actually works. I think you should create a new post, so we keep the thead clean about how to re-order the post.
- You can mark the question as solved by clicking the green tick beside the avatar picture, for the post with the right answer.
Hope this helps, so just create another question, and perhaps others can help you out or Anthony Dang
Re-order related posts
Anyone know how to order the related posts so that they are newest to oldest from the top down instead of oldest to newest?
Hi Ciaran and welcome you our.
First you need to find the partial view that renders the related post. This partial view is located in here \Views\Partials\uBlogsy\Post\uBlogsyPostListRelatedPosts.cshtml. When you in this file you need to add .OrderBy to the foreach loop so your code look like this.
Hope this helps,
/Dennis
Hi Dennis,
This works, thanks for this.
I have now noticed however that the related posts are the exact same for all of my blogs posts - do you know how this feature actually works?
Thanks
Hi Ciaran,
Great to hear that it works with the sorting. I donĀ“t know how the feature actually works. I think you should create a new post, so we keep the thead clean about how to re-order the post.
- You can mark the question as solved by clicking the green tick beside the avatar picture, for the post with the right answer.
Hope this helps, so just create another question, and perhaps others can help you out or Anthony Dang
/Dennis
is working on a reply...