Ok,
I made it work by adding ‘organizer_id’ => 12911249493 in the eventbrite-index.php, but I have another question.
When I update an event (like change the title) in eventbrite, it doesn’t update on my website. If I disconnect and reconnect the api in keyring, magic, it’s updated. Why ? I don’t want to reconnect each time.
Thanks
-
This reply was modified 8 years, 9 months ago by
pcamepc.
@pcamepc Have you figured out how to get them to display without reconnecting each time? What is the full path you used with the org id?
Hi,
The full path is : /wp-content/plugins/eventbrite-api/tmpl/eventbrite-index.php and I added this ‘organizer_id’ => 12911249493, in :
// Set up and call our Eventbrite query.
$events = new Eventbrite_Query( apply_filters( ‘eventbrite_query_args’, array(
‘organizer_id’ => 12911249493,
‘include_unavailable_events’ => true
) ) );
For the refresh, I added this to my theme functions.php :
/*** Reduce the eventbrite api default cache time from one day to one hour. ***/
function eventbrite_api_cache_one_hour() {
return HOUR_IN_SECONDS;
}
add_filter( ‘eventbrite_cache_expiry’, ‘eventbrite_api_cache_one_hour’ );
Thanks
-
This reply was modified 8 years, 7 months ago by
pcamepc.