Support » Fixing WordPress » single category view – date and order questions

  • I’ve been working a lot lately with single category views lately. I’ve pretty much got it all figured out with a few exceptions.

    1) Any idea on a good way to sort the entries in a category view in a descending order? (Tour dates..I’d like the oldest one posted to be at the top.)

    2) When trying to post the date on news entries the following function does not work properly <?php the_date(); ?> It posts the date on the first entry, but none after that.

    If you need to see examples let me know.

    Thanks in advance,
    Tanner Woodford

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1) use the codex for sorting the entries, there should be some sort of argument you pass in the loop

    2) use <?php the_time(‘ — with your php timecodes here — ‘) ?>

    also look in the codex for a way to display the date you want

    Have a look at the perpage plugin: you should be able to tack the order=... bit from some of the lines onto the category section.

    Ahh.. the_time. I knew that one would be easy. I’m confident that sorting is, too. It has to be. I’ve trying searching the codex to no avail.

    Anyone have advice?


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘single category view – date and order questions’ is closed to new replies.