Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brian 77 posts 251 karma points
    Jun 09, 2014 @ 16:23
    Brian
    0

    Posts in the wrong order

    Hi guys,

    Just installed and set up the package into my website but when I am creating and publishing posts they are appearing in the reverse order (so oldest posts at the top of the list)

    Any idea why?

  • Brian 77 posts 251 karma points
    Jun 25, 2014 @ 11:08
    Brian
    0

    Hi Luke / guys...  Not sure if anybody saw this post initially but I am having difficulties with displaying the posts in the correct order on the main Blog List.  at present they are displaying in the opposite order so oldest posts are being displayed first and then the newer posts are below!!

    Any ideas why and how to resolve?

    Cheers

  • Alex 16 posts 97 karma points
    Jul 06, 2014 @ 00:00
    Alex
    100

    Hi Brian, I had the same problem a while back. I was able to change the order of the posts by modifying the SmartListPosts.cshtml partial view. I changed line 56 to:

    results = results.Where(y => y.DocumentTypeAlias == "SmartBlogPost").OrderBy("smartBlogDate descending").ToList();

    Hope that helps. :)

  • Luke Alderton 192 posts 509 karma points
    Jul 22, 2014 @ 11:46
    Luke Alderton
    0

    Hi Alex & Brian,

    Sorry for the late reply, I've been away on paternity leave for a while. I've just updated smart blog to order posts newest first, I'll upload the new version today. Thank you for taking the time to report this and find a fix.

    Regards, Luke

  • Brian 77 posts 251 karma points
    Jul 31, 2014 @ 18:05
    Brian
    1

    Hi Alex,

    You offically ROCK!  it is always the simplest of things that fix these issues eh.

    Luke, good to hear your life is busy with much more important things, I hope all is well chap and well done on creating a cracking Blog package

     

  • Sara 2 posts 22 karma points
    Oct 15, 2014 @ 16:44
    Sara
    0

    Just found this - thanks for the advice on how to change the order of the posts. Have been struggling with this but now all sorted! :)

Please Sign in or register to post replies

Write your reply to:

Draft