Forums

[resolved] Sort Posts Ascending Order in Calendar View (3 posts)

  1. Shane Barnes
    Member
    Posted 5 months ago #

    Hi all. A current client would like for their blog posts to appear in ascending order when viewed via the WordPress Calendar widget, i.e. when they click on the previous month, in this case November, the result returned will be in ascending order. Does anyone know how to do this? I've been able to achieve this in Category view by modifying the category.php template, but can't figure out how to so so with the Calendar. Thanks in advance for any and all help. :)

  2. Chouby
    Member
    Posted 5 months ago #

    The calendar widget simply links to date archive (day, month, year) so try modifying archive.php or in a more restrictive way, date.php

  3. Shane Barnes
    Member
    Posted 5 months ago #

    Thanks a bunch for your help, Chouby. Added a posts query in ascending order to the archive.php file and that did the trick.

Reply

You must log in to post.

About this Topic