Word Press Blog Programming Code Help

Discussion in 'White Hat SEO' started by billyh7, Dec 11, 2009.

  1. billyh7

    billyh7 Junior Member

    Joined:
    Dec 18, 2008
    Messages:
    162
    Likes Received:
    2
    I use this coding.

    <?php $recent = new WP_Query("cat=1987&showposts=5"); while($recent->have_posts()) : $recent->the_post();?>


    My problem is if I don't post 5 new articles for today it will show the articles from the previous day.I want it to just post what is for todays date.

    I currently go in there everyday and change showposts=5" to equal the new number of articles I just posted for that day.