Since you know you want only the first one and you’re not using a typical loop, you’re already using an array of posts, you can just do
setup_postdata($events[0]);
and then get your data from the first item here
then continue your loop as written if it’s working as happily as expected.
Related Posts:
- I use the events Calendar Plugin and I want to change some words
- How to modify list of events in backend (admin) of The Events Calendar plugin?
- How to see if event is featured in PHP? [closed]
- The Events Calendar – Datepicker not working
- Changing the words ‘Now’ & ‘onward’ to just the single word ‘Dates’ in The Events Calendar
- Query only past events and only future events in the event calendar
- The Events Calendar EventURL not displaying
- The Events Calendar date in WP Query Loop
- WP Plugin: The events calendar show organizers featured Image if the events featured image is empty
- How to share category taxonomy with custom post type (The Event Calendar plugin)
- Modify custom post type rewrite rules in a separate function
- Modern Tribe Calendar wp-query with meta query not working at all
- Extend ‘The Events Calendar’ search to include custom fields [closed]
- Date in the URL with The Events Calendar
- Check if we’re viewing an event
- Disable The Events Calendar plugin from loading its scripts
- Add meta field after post has been published
- How to stop or remove an action being called inside a function of an extended class
- add custom filters to the event calendar plugin programatically to frontend [closed]
- Calendar Plugins – Featured Widget [closed]
- how can I override The Events Calendar query modifications?
- Integrating Facebook calender to WordPress
- Events: Check for other event with same start date and category [closed]
- WP_Query for custom post type and category_id not working
- Plugin has no US english translation file
- Writing a function to detect an event
- tribe_get_start_time displays the current date and time on other post types than tribe_events
- Sorting dynamic select/dropdown for Contact Form 7 of Modern Tribe Events posts
- Only show posts from the last trailing 12 months
- The Events Calendar: Events page as Home page [closed]
- Reverse order of events on homepage [closed]
- the-events-calendar, pagination with tribe_get_events()
- The Events Calendar, wp_query returning event date not published date
- How to Create Events Calendar
- Custom Permalink Structure for The Events Calendar
- The Events Calendar featured image as body background?
- Events Calendar Multisite 404 for events
- WP_Query for posts that have postmeta assigned to a taxonomy
- Query post type created by a plugin
- Remove custom post type generated by a plugin (The Events Calendar) [closed]
- How to set up year view for datepicker in The Events Calendar plugin?
- Pagination for event query
- “The Events Calendar” Issues in WP 3.2
- Using variables as href in anchor tags (PHP) [closed]
- How do I set a custom post type Category after import using wp_set_post_terms