{"id":1357555,"date":"2017-10-01T18:27:56","date_gmt":"2017-10-02T01:27:56","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/"},"modified":"2017-10-01T18:27:56","modified_gmt":"2017-10-02T01:27:56","slug":"i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/","title":{"rendered":"I am trying to shoe featured images from featured events with slider revolution"},"content":{"rendered":"<p>Hello,<br \/>\nCan someone help me?<br \/>\nI am trying to show featured images from featured events only with slider revolution but it is not working.<br \/>\nMy slider ID: feature. I getting an error that says that argument number 2 for function revslider_post_based_featured_events_w_featured_image() is missing.<br \/>\nI am currently using:<\/p>\n<p>function revslider_post_based_featured_events_w_featured_image( $query, $slider_id) {<\/p>\n<p>\t$slider_ids_to_affect = array( &#8220;feature&#8221; ); <\/p>\n<p>\t\/\/ if this slider is not one to affect, do no filtering<br \/>\n\tif ( ! in_array( $slider_id, $slider_ids_to_affect ) ) {<br \/>\n\t\treturn $query;<br \/>\n\t}<\/p>\n<p>\t\/\/ get the existing meta_query so we aren&#8217;t wiping that out<br \/>\n    if ( ! empty( $query[&#8216;meta_query&#8217;] ) ) {<br \/>\n\t    $meta_query = (array) $query[ &#8216;meta_query&#8217; ];<br \/>\n    } else {<br \/>\n\t    $meta_query = array();<br \/>\n    }<\/p>\n<p>\t\/\/ do the filtering&#8230;<\/p>\n<p>\t\/\/ has a Featured Image<br \/>\n\t$meta_query[] = array(<br \/>\n\t\t&#8216;key&#8217; =&gt; &#8216;_thumbnail_id&#8217;,<br \/>\n\t\t&#8216;compare&#8217; =&gt; &#8216;EXISTS&#8217;,<br \/>\n\t);<\/p>\n<p>\t\/\/ is a Featured Event (requires The Events Calendar version 4.4+ from January 9, 2017)<br \/>\n\tif ( class_exists( &#8216;Tribe__Events__Main&#8217; )<br \/>\n         &amp;&amp; class_exists( &#8216;Tribe__Events__Featured_Events&#8217; )<br \/>\n         &amp;&amp; Tribe__Events__Main::POSTTYPE === $query[&#8216;post_type&#8217;]<br \/>\n    ) {<br \/>\n\t\t$meta_query[] = array(<br \/>\n\t\t\t&#8216;key&#8217;     =&gt; Tribe__Events__Featured_Events::FEATURED_EVENT_KEY,<br \/>\n\t\t\t&#8216;compare&#8217; =&gt; &#8216;EXISTS&#8217;,<br \/>\n\t\t);<br \/>\n    }<\/p>\n<p>\t$query[&#8216;meta_query&#8217;] = $meta_query;<\/p>\n<p>\treturn $query;<br \/>\n}<\/p>\n<p>add_filter( &#8216;revslider_get_posts&#8217;, &#8216;revslider_post_based_featured_events_w_featured_image&#8217;, &#8220;feature&#8221; );<\/p>\n","protected":false},"template":"","class_list":["post-1357555","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>I am trying to shoe featured images from featured events with slider revolution -<\/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\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I am trying to shoe featured images from featured events with slider revolution -\" \/>\n<meta property=\"og:description\" content=\"Hello, Can someone help me? I am trying to show featured images from featured events only with slider revolution but it is not working. My slider ID: feature. I getting an error that says that argument number 2 for function revslider_post_based_featured_events_w_featured_image() is missing. I am currently using: function revslider_post_based_featured_events_w_featured_image( $query, $slider_id) { $slider_ids_to_affect = array( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/\" \/>\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\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/\",\"name\":\"I am trying to shoe featured images from featured events with slider revolution -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-10-02T01:27:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/#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\":\"I am trying to shoe featured images from featured events with slider revolution\"}]},{\"@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":"I am trying to shoe featured images from featured events with slider revolution -","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\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/","og_locale":"en_US","og_type":"article","og_title":"I am trying to shoe featured images from featured events with slider revolution -","og_description":"Hello, Can someone help me? I am trying to show featured images from featured events only with slider revolution but it is not working. My slider ID: feature. I getting an error that says that argument number 2 for function revslider_post_based_featured_events_w_featured_image() is missing. I am currently using: function revslider_post_based_featured_events_w_featured_image( $query, $slider_id) { $slider_ids_to_affect = array( [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/","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\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/","name":"I am trying to shoe featured images from featured events with slider revolution -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-10-02T01:27:56+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/i-am-trying-to-shoe-featured-images-from-featured-events-with-slider-revolution\/#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":"I am trying to shoe featured images from featured events with slider revolution"}]},{"@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\/1357555","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\/1357555\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1357555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}