Forums

order=ASC - but most recent? (5 posts)

  1. nation111
    Member
    Posted 1 year ago #

    I am working with REINtn.org right now.

    One of the leaders brought up a desire to have the "featured" area on the home page (left side, under the FCG) be in Ascending order ... or in this case, the oldest post first, but still the most recent 5.

    Any ideas?

    In looking at the code I threw in an "&order=ASC" yet that caused the posts shown to start with the oldest, and not the most recent 5.

    I have a feeling that I know a way, but it involves a lot of coding and juggling multiple arrays and I would hope there is a quick and easy way.

    Help.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. nation111
    Member
    Posted 1 year ago #

    esmi - your post is not useful to me.

    wanna explain how that page really tells me how to pull the most recent 5 posts from a category, yet display them with the olderst first to the newest?

  4. MAS
    Member
    Posted 1 year ago #

    use &order=DESC

  5. nation111
    Member
    Posted 1 year ago #

    chinmoy - &order=DESC is the default ... I am wanting something other then the default.

    Here is an example

    post 1
    post 2
    post 3
    post 4
    post 5
    post 6
    post 7
    post 8

    Where Post 1 is the oldest ....

    What we want is oldest first - but the most recent five:
    or
    it to show like this:

    post 4
    post 5
    post 6
    post 7
    post 8

    Here are results for things I have attempted:
    &order=DESC =
    post 8
    post 7
    post 6
    post 5
    post 4

    &order=ASC = and &orderby=id&order=ASC =
    post 1
    post 2
    post 3
    post 4
    post 5

    &orderby=id&order=DESC = and &orderby=date&order=DESC =
    post 8
    post 7
    post 6
    post 5
    post 4

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.