• So I’m using this code:
    https://gist.github.com/guillermotron/6586932

    And I can’t seem to figure out how to reverse the post order. I still want to have the newest 3 posts listed, but with the oldest of the newest posts first, instead of the standard WordPress order where the newest of the newest come first.

    clear as mud?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    On line 132 there’s a filter for modifying the query. You can pass in a value for the ‘order’ (reference) in addition to those others and that should fix it up for you.

    Thread Starter darkflux

    (@darkflux)

    yeah, but when i do that, it shows the OLDEST post on the main screen.

    what i want is the oldest of the 3 NEWEST posts first.

    Thread Starter darkflux

    (@darkflux)

    the way WordPress works, it lets you choose how many posts to pull, and what order the list should be when it pulls them, but not what order to DISPLAY them afterwards, apparently. unless i’m just missing that string…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reverse Post Order Using Custom Widget’ is closed to new replies.