Support » How-To and Troubleshooting » Simple Code Help needed

Simple Code Help needed

  • I’m trying to display all entries posted on the current day from one particular category only.

    Here’s what I’ve found. What do I need to add so that it only shows posts from the cat=id that i specify ? Thanks.

    <?php $today = getdate(); query_posts ('year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"] ); ?>
      <?php while (have_posts()) : the_post(); ?>
        <!-- STUFF HERE -->
      <?php endwhile;?>
Viewing 1 replies (of 1 total)
  • query_posts($query_string . 'category_name=Shows&year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"] );

Viewing 1 replies (of 1 total)
  • The topic ‘Simple Code Help needed’ is closed to new replies.