The Events Calender Standard Version help
-
I am using standard version of the The events calendar and need to display more than 10 events in widget.
I am using this code but after update to latest version this code it not working anymore. please if anyone can help me I don’t want to use the PRO version.
If anyone help me so that this code work with standrd version I willbe really Thankful!
Code:
add_filter(‘widget_display_callback’, ‘increase_event_widget_limit’, 10, 2);
/**
* Test if the current widget is an Advanced List Widget and fix the
* event limit if so.
*/
function increase_event_widget_limit(array $instance, $widget) {
if (is_a($widget, ‘TribeEventsAdvancedList_Widget’))
$instance[‘limit’] = 30;
return $instance;
}Regards,
Gennie
- The topic ‘The Events Calender Standard Version help’ is closed to new replies.