WordPress.org

Ready to get started?Download WordPress

Forums

single category view - date and order questions (4 posts)

  1. ashadeofgrey
    Member
    Posted 9 years ago #

    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

  2. omann0
    Member
    Posted 9 years ago #

    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

  3. iand
    Member
    Posted 9 years ago #

    Have a look at the perpage plugin: http://rephrase.net/miscellany/05/perpage.phps you should be able to tack the order=... bit from some of the lines onto the category section.

  4. ashadeofgrey
    Member
    Posted 9 years ago #

    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?

    Thanks,
    Tanner

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags