Home › Forums › Front-end Issues › Include meta added via relational post object in an existing query function › Reply To: Include meta added via relational post object in an existing query function
Sure, so here’s the tribe_organizer_upcoming_events function:
<?php
/**
* Output the upcoming events associated with a venue
*
* @return void
*/
function tribe_organizer_upcoming_events( $post_id = false ) {
$post_id = Tribe__Events__Main::postIdHelper( $post_id );
if ( $post_id ) {
$args = array(
'organizer' => $post_id,
'eventDisplay' => 'list',
'posts_per_page' => apply_filters( 'tribe_events_single_organizer_posts_per_page', 100 ),
'starts_after' => 'now',
);
$html = tribe_include_view_list( $args );
return apply_filters( 'tribe_organizer_upcoming_events', $html );
}
}
Here (more importantly, I hope) is the support page for using tribe_get_events()
, which they go on to describe as “a neat little helper function that makes it easy to retrieve event data when building customizations,” before offering something of a basic-use tutorial, as well as how it relates to the WP_Query class or the get_posts() function:
https://support.theeventscalendar.com/666307-Using-tribe_get_events
Not sure whether this could prove helpful in any way, but here is the support page for Tribe Settings API:
https://support.theeventscalendar.com/489740-Tribe-Settings-API
An overview of the tribe_get_organizer function parameters:
https://theeventscalendar.com/function/tribe_get_organizer/
I’d be happy to additionally provide you with any of the “Pro” plugin files you’d think might be helpful. I’m not sure how appropriate it would be to do so here, but let me know if that’s something worth exploring.
Finally, this may be so dated that it’s ultimately worthless at this point in time, but here were all of the Events Calendar Custom fields, as provided about three years ago:
The Events Calendar Custom Fields @3.9
Event Custom Post Type ( tribe_events )
_EventAllDay
_EventStartDate
_EventEndDate
_EventDuration
_EventVenueID
_EventShowMapLink
_EventShowMap
_EventCurrencySymbol
_EventCurrencyPosition
_EventCost
_EventCostMin
_EventCostMax
_EventURL
_EventOrganizerID
_EventPhone
_EventHideFromUpcoming
_FacebookID
_EventOrigin
Venue Custom Post Type ( tribe_venue )
_VenueVenue
_VenueCountry
_VenueAddress
_VenueCity
_VenueStateProvince
_VenueState
_VenueProvince
_VenueZip
_VenuePhone
_VenueURL
To get Venue ID for an event use this function:
tribe_get_venue_id( $event_id );
Organizer Custom Post Type ( tribe_organizer )
_OrganizerOrganizer
_OrganizerEmail
_OrganizerWebsite
_OrganizerPhone
To get Organizer ID for an event use this function:
tribe_get_organizer_id( $event_id );
Capabilities
edit_tribe_event
read_tribe_event
delete_tribe_event
delete_tribe_events
edit_tribe_events
edit_others_tribe_events
delete_others_tribe_events
publish_tribe_events
edit_published_tribe_events
delete_published_tribe_events
delete_private_tribe_events
edit_private_tribe_events
read_private_tribe_events
edit_tribe_venue
read_tribe_venue
delete_tribe_venue
delete_tribe_venues
edit_tribe_venues
edit_others_tribe_venues
delete_others_tribe_venues
publish_tribe_venues
edit_published_tribe_venues
delete_published_tribe_venues
delete_private_tribe_venues
edit_private_tribe_venues
read_private_tribe_venues
edit_tribe_organizer
read_tribe_organizer
delete_tribe_organizer
delete_tribe_organizers
edit_tribe_organizers
edit_others_tribe_organizers
delete_others_tribe_organizers
publish_tribe_organizers
edit_published_tribe_organizers
delete_published_tribe_organizers
delete_private_tribe_organizers
edit_private_tribe_organizers
read_private_tribe_organizers
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.