Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mikewillnot

    (@mikewillnot)

    ignore this comment please. Just trying to check the box for email notification. [Ah. Now I see how to edit the original post.
    D’oh!]

    Thread Starter mikewillnot

    (@mikewillnot)

    I’m still (or, again) working on this problem, only now instead of past, it’s just current, for today that needs to appear above future. I now have this query

    <?php $recent = new WP_Query('showposts=1&category_name=english&order=DESC'); while($recent->have_posts()) : $recent->the_post();?>

    The above code produces the post for the current day, but I only get the correct results if there is only one post for today. If there are two or more today (and I want to return them all) I need to query specifically for the current date. I can’t figure out how to do that.

    The code above is a modified version of what I got with my theme; I’m really a php newbie.

    Any help would be greatly appreciated. THANKS.

Viewing 2 replies - 1 through 2 (of 2 total)