Title: Daynum?
Last modified: August 24, 2016

---

# Daynum?

 *  [ianbutty](https://wordpress.org/support/users/ianbutty/)
 * (@ianbutty)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/daynum/)
 * We have monthnum and year parameters is there a “daynum” or equivalent? I am 
   trying to display all the posts that were published on a specific date irrespective
   of year.
 * Eg All the christmas day posts
    [catlist monthnum=12 daynum=25]
 * Any idea how to achieve this?
 * [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [ianbutty](https://wordpress.org/support/users/ianbutty/)
 * (@ianbutty)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/daynum/#post-6111409)
 * Actually I think I have found out how to get this two minor changes to the plugin….
 * In includes/lcp-parameters.php look for
 *     ```
       if($this->utils->lcp_not_empty('monthnum')):
             $args['monthnum'] = $params['monthnum'];
           endif;
       ```
   
 * and add below it
 *     ```
       if($this->utils->lcp_not_empty('day')):
             $args['day'] = $params['day'];
           endif;
       ```
   
 * Then in list_cat_posts.php search for
 *     ```
       'monthnum' => '',
       ```
   
 * and then below it add:
 *     ```
       'day' => '',
       ```
   
 * This means you can then use:
    [catlist monthnum=12 day=25] to display all post
   on Christmas day.
 * Any chance these changes can be added to the plug-in code? So that I won’t have
   to re-add them everytime there is an update?

Viewing 1 replies (of 1 total)

The topic ‘Daynum?’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [ianbutty](https://wordpress.org/support/users/ianbutty/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/daynum/#post-6111409)
 * Status: not resolved