• Resolved sekimori

    (@sekimori)


    Successfully using the following to only show the current day’s entries:

    $today = getdate();
    query_posts('year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"]);

    Need to also sort by ascending order, but the sort is being completely ignored:

    <?php $posts=query_posts($query_string.'&order=ASC');
    if (have_posts()) : ?>
    
    <?php
    $today = getdate();
    query_posts('year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"]);
    while (have_posts()) : the_post(); ?>

    What in the name of Zurg do I need to do to get both of these things to happen?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Wny not just this:

    <?php
    $today = getdate();
    query_posts($query_string. '&order=ASC&year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"]);
    
    if (have_posts()) : 
    
    while (have_posts()) : the_post();
    ?>

    Thread Starter sekimori

    (@sekimori)

    Blessings upon you, kind sir!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display one day’s posts AND sort ascending’ is closed to new replies.