{"id":1184708,"date":"2016-10-28T15:02:30","date_gmt":"2016-10-28T22:02:30","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/"},"modified":"2016-10-28T15:02:30","modified_gmt":"2016-10-28T22:02:30","slug":"advanced-list-widget-show-more-than-10-events-sometimes","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/","title":{"rendered":"Advanced List Widget: Show more than 10 events (SOMETIMES!)"},"content":{"rendered":"<p>Hello! <\/p>\n<p>My site has many different places where it uses the advanced list widget to display all sorts of combos of events. I want to make it so that in certain instances, the limit of events displayed is greater than 10&#8230; but in other cases have the limit apply. <\/p>\n<p>I tried using this code found in the support forum:<br \/>\n<code>add_filter('widget_display_callback', 'increase_event_widget_limit', 10, 2);<\/p>\n<p>\/**<br \/>\n * Test if the current widget is an Advanced List Widget and fix the event limit if it is.<br \/>\n *\/<br \/>\nfunction increase_event_widget_limit(array $instance, $widget) {<br \/>\n    if (is_a($widget, 'Tribe__Events__Pro__Advanced_List_Widget'))<br \/>\n        $instance['limit'] = 30;<\/p>\n<p>    return $instance;<br \/>\n}<\/p>\n<p>unfortunately that doesn't work for me because in some places where i need the limit to apply, it overrides it. what would be ideal is code that would tell it to bump up the limit to 30 or whatever ONLY when 10 has been selected in the widget menu... but when some smaller number is chosen, it uses the smaller number. <\/p>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1184708","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Advanced List Widget: Show more than 10 events (SOMETIMES!) -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Advanced List Widget: Show more than 10 events (SOMETIMES!) -\" \/>\n<meta property=\"og:description\" content=\"Hello! My site has many different places where it uses the advanced list widget to display all sorts of combos of events. I want to make it so that in certain instances, the limit of events displayed is greater than 10&#8230; but in other cases have the limit apply. I tried using this code found [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/\",\"name\":\"Advanced List Widget: Show more than 10 events (SOMETIMES!) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-28T22:02:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Advanced List Widget: Show more than 10 events (SOMETIMES!)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Advanced List Widget: Show more than 10 events (SOMETIMES!) -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/","og_locale":"en_US","og_type":"article","og_title":"Advanced List Widget: Show more than 10 events (SOMETIMES!) -","og_description":"Hello! My site has many different places where it uses the advanced list widget to display all sorts of combos of events. I want to make it so that in certain instances, the limit of events displayed is greater than 10&#8230; but in other cases have the limit apply. I tried using this code found [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/","name":"Advanced List Widget: Show more than 10 events (SOMETIMES!) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-28T22:02:30+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/advanced-list-widget-show-more-than-10-events-sometimes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Advanced List Widget: Show more than 10 events (SOMETIMES!)"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1184708","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1184708\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1184708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}