My calendar navigation buttons get misplaced on months with no events. What gives?

This is a known issue that only occurs with certain themes. Luckily, a user on the WordPress.org forums provided a solution that should do the trick if your theme is impacted.

To start, make a copy of table.php and place it in a newly-created ‘events’ folder in your theme directory. Open the file, and add — directly above the first occurrence of $monthView (on line 31) — the following code:

if( !$eventPosts ) {
$eventPosts = new stdClass();
$eventPosts -> EventStartDate = '2012-'. $month .'-01 00:00:00';
$eventPosts -> EventEndDate = '2012-'. $month .'-01 00:00:00';
$eventPosts = array( $eventPosts );
}

That ought to fix the issue for you!

Posted in: Troubleshooting

Modern Tribe Newsletter

Insight, Discounts & Notices for People Who Kick Ass..