get_posts seems to be skipping the last Post
The default nmber of posts returned is 5. To return more than 5 posts use: $posts = get_posts( array(‘post_type’ => ‘events’, ‘numberposts’ => 10) ); Or for all of them: $posts = get_posts( array(‘post_type’ => ‘events’, ‘numberposts’ => -1) ); More info about get_posts http://codex.wordpress.org/Template_Tags/get_posts