While using the recurring event feature with the WordPress Plugin Events Calendar Pro, a problem may occur when trying to pull the start date for upcoming RECURRING events. By using $post->ID
, the WP plugin will pull the first start date (not each start date) for each recurring post.
Getting the actual start date for each event in the recurring events is a quite simple fix. Use the following code snippet in your template or custom worpdress query (get_posts, etc).
**Use:**
1 |
echo tribe_get_start_date($post, false, ‘D. M j’) |
Instead of:
1 |
echo tribe_get_start_date( $post->ID, false, ‘D. M j’ ); |