1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Word Press Blog Programming Code Help

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

  1. billyh7

    billyh7 Junior Member

    Dec 18, 2008
    Likes Received:
    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.