How to change wordpress date order? (2 posts)

  1. rayanneolaes
    Posted 7 years ago #

    I've just switched from cutenews to wordpress, and everything's just confusing me on here, lol. But I was wondering, does anyone know how to change the order of the date on your blog? Like how do you make it so the Month and Date appears, and how do you change its order? I was looking in my news.php and it said something about 'F jS, Y'? I'm guessing Y stands for Year? Haha, I'm not sure what the rest stand for, lol. Help? :) I'd appreciate it.

  2. MichaelH
    Posted 7 years ago #

    Typically WordPress themes display posts in ascending date order with the newest post first. You would need to change the appropriate template and customize your loop by adding something like query_posts($query_string.'&order=ASC'); just before your loop.

    The date information is usually displayed via the template tag, the_time(). Formatting Date and Time explains some of the options you have for formatting you dates and times.

    Additional Resources:
    Stepping Into Templates
    Template Hierarchy
    Stepping Into Template Tags

Topic Closed

This topic has been closed to new replies.

About this Topic