Title: Problem inserting curdate function in posts
Last modified: August 19, 2016

---

# Problem inserting curdate function in posts

 *  [davefca](https://wordpress.org/support/users/davefca/)
 * (@davefca)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/problem-inserting-curdate-function-in-posts/)
 * I’m trying to insert the curdate function into the code below so that once this
   particular category of posts is older than the current date, they’re not displayed.
   Has anyone had experience with this or can offer any help/advice?
 *     ```
       <?php $the_query = new WP_Query('cat=25' .$catid. ',-' .$catid2. '&showposts=5&orderby=post_date&order=desc');
       			while ($the_query->have_posts()) : $the_query->the_post();
       $do_not_duplicate = $post->ID; ?>
       ```
   

The topic ‘Problem inserting curdate function in posts’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [davefca](https://wordpress.org/support/users/davefca/)
 * Last activity: [17 years, 6 months ago](https://wordpress.org/support/topic/problem-inserting-curdate-function-in-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
