Title: Get days with posts ERROR
Last modified: July 5, 2017

---

# Get days with posts ERROR

 *  Resolved [wpgear](https://wordpress.org/support/users/wpgear/)
 * (@wpgear)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/get-days-with-posts-error/)
 * After select the any month or year (not current) – the calendar displays a limited
   number of Post. (presets in general settings WP).
 * Must be corrected file ajax-archive-calendar.php str.335
    just add **‘numberposts’
   => $last_day,**
 *     ```
       // Get days with posts
       	$dayswithposts = get_posts(array(
       		'suppress_filters' => false,
       		'post_type' => 'post',
       		'post_status' => 'publish',
       		'monthnum' => $thismonth,
       		'year' => $thisyear,
       		'numberposts' => $last_day,
       	));
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [osman sorkar](https://wordpress.org/support/users/osmansorkar/)
 * (@osmansorkar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/get-days-with-posts-error/#post-9811087)
 * Hi Wpgear
 * You may check current version.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Get days with posts ERROR’ is closed to new replies.

 * ![](https://ps.w.org/ajax-archive-calendar/assets/icon-256x256.png?rev=3335215)
 * [Ajax Archive Calendar](https://wordpress.org/plugins/ajax-archive-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-archive-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-archive-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-archive-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-archive-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-archive-calendar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [osman sorkar](https://wordpress.org/support/users/osmansorkar/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/get-days-with-posts-error/#post-9811087)
 * Status: resolved