Title: Simple Code Help needed
Last modified: August 19, 2016

---

# Simple Code Help needed

 *  [Klark0](https://wordpress.org/support/users/klark0/)
 * (@klark0)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/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.
 *     ```
       <ul>
       <?php $today = getdate(); query_posts ('year=' .$today["year"] .'&monthnum=' .$today["mon"] .'&day=' .$today["mday"] ); ?>
   
         <?php while (have_posts()) : the_post(); ?>
       <li>
           <!-- STUFF HERE -->
       </li>
   
         <?php endwhile;?>
       </ul>
       ```
   

Viewing 1 replies (of 1 total)

 *  [cd30](https://wordpress.org/support/users/cd30/)
 * (@cd30)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/simple-code-help-needed/#post-999831)
 * `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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [cd30](https://wordpress.org/support/users/cd30/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/simple-code-help-needed/#post-999831)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
