{"id":1007787,"date":"2015-09-23T06:02:08","date_gmt":"2015-09-23T13:02:08","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/"},"modified":"2015-10-10T07:05:04","modified_gmt":"2015-10-10T14:05:04","slug":"adding-event-info-to-venues-using-tribe_include_view_list-array","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/","title":{"rendered":"adding event info to venues using tribe_include_view_list array"},"content":{"rendered":"<p>Hi folks,<\/p>\n<p>I have added categories to venues and am displaying them on a page using a short code. I have events for the venue displaying but I need to filter that info more specifically. I am using the following code to retrieve the the info:<\/p>\n<pre><code>\t&lt;?php echo tribe_include_view_list( array(\n\t&#039;venue&#039; =&gt; $venue_id, \n\t&#039;eventDisplay&#039; =&gt; &#039;photo&#039;, \n\t&#039;posts_per_page&#039; =&gt; apply_filters( \n\t\t&#039;tribe_events_single_venue_posts_per_page&#039;, 3 ) \n\t\t) )?&gt;<\/code><\/pre>\n<p>My problem is three fold:<br \/>\n1 &#8211; there is way more info than I want returned by this code. All I want is the date displayed like it is on the widget, the featured image and the name of the event. Can give me some guidance on how I would filter that down? I do not want link to previous and next events.<\/p>\n<p>2- events are displayed as list layout, not in photo grid<\/p>\n<p>3- the code also returns &#8220;Upcoming Events: There were no results found&#8221; then display the events.  Need to get rid of that.<\/p>\n<p>Here&#8217;s a link to VERY beta version of the page: http:\/\/ashevillealetrail.com\/brewery-venues-listing<\/p>\n<p>and the full code Im using:<\/p>\n<pre><code>&lt;ul class=&quot;venue_brewery&quot;&gt;\n\n&lt;?php $categories = get_categories( $args ); ?&gt;\n  &lt;?php\n\t\t\t$my_query =  new WP_Query( array( &#039;post_type&#039; =&gt; &#039;tribe_venue&#039;, \n\t\t\t\t\t&#039;tax_query&#039; =&gt; array(\n        array(\n            &#039;taxonomy&#039; =&gt; &#039;tribe_venue_category&#039;,\n            &#039;field&#039; =&gt; &#039;slug&#039;,\n            &#039;terms&#039; =&gt; &#039;brewery-full&#039;\n        \t\t)\n    \t\t),\n\t\t\t &#039;orderby&#039; =&gt; &#039;rand&#039;, &#039;order&#039; =&gt; &#039;ASC&#039;, &#039;posts_per_page&#039; =&gt; -1 ) );\n\n\t\t\t\t\tif( $my_query-&gt;have_posts() ) {\n\t\t\t\t\t  while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post();\n\t\t\t\t\t  $thumburl = wp_get_attachment_url( get_post_thumbnail_id ($my_query-&gt;ID) );\n\t\t\t\t\t  $venue_id = get_the_ID();\n\t\t\t\t\t  ?&gt;\n                      \n\t\t\t\t  &lt;?php $user_count = $wpdb-&gt;get_var( &quot;SELECT count(*) FROM &lt;code&gt;xjs_postmeta&lt;\/code&gt; WHERE meta_value=&#039;&quot;.get_the_ID().&quot;&#039;&quot; ); ?&gt;\n                  \n                  &lt;li class=&quot;li_venue&quot;&gt;\n                  &lt;!--venue Title--&gt; \n                    &lt;h2 class=&quot;venue_brewery_full_title&quot;&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/h2&gt;\n                  &lt;!--End venue Title--&gt; \n                  \n                    \n&lt;!--venue thumbnail--&gt; \n                         \n                          &lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title(); ?&gt;&quot;&gt;&lt;img class=&quot;img_venue_full&quot;  src=&quot;&lt;?php echo $thumburl; ?&gt;&quot; \/&gt;&lt;\/a&gt;\n                           \n &lt;!--End venue thumbnail--&gt;                           \n &lt;!--adds venu meta--&gt;\n                    &lt;div class=&quot;tribe-events-meta-group tribe-events-meta-group-venue&quot;&gt;\n                        \n                        &lt;dl&gt;\n                            &lt;?php do_action( &#039;tribe_events_single_meta_venue_section_start&#039; )?&gt;\n                    \n                            &lt;dd class=&quot;author fn org&quot;&gt; &lt;?php echo tribe_get_venue() ?&gt; &lt;\/dd&gt;\n                    \n                            &lt;?php\n                            \/\/ Do we have an address?\n                            $address = tribe_address_exists() ? &#039;&lt;address class=&quot;tribe-events-address&quot;&gt;&#039; . tribe_get_full_address() . &#039;&lt;\/address&gt;&#039; : &#039;&#039;;\n                    \n                            \/\/ Do we have a Google Map link to display?\n                            $gmap_link = tribe_show_google_map_link() ? tribe_get_map_link_html() : &#039;&#039;;\n                            $gmap_link = apply_filters( &#039;tribe_event_meta_venue_address_gmap&#039;, $gmap_link );\n                    \n                            \/\/ Display if appropriate\n                            if ( ! empty( $address ) ) {\n                                echo &#039;&lt;dd class=&quot;location&quot;&gt;&#039; . &quot;$address $gmap_link &lt;\/dd&gt;&quot;;\n                            }\n                            ?&gt;\n                    \n                            &lt;?php if ( ! empty( $phone ) ): ?&gt;\n                                &lt;dt&gt; &lt;?php _e( &#039;Phone:&#039;, &#039;tribe-events-calendar&#039; ) ?&gt; &lt;\/dt&gt;\n                                &lt;dd class=&quot;tel&quot;&gt; &lt;?php echo $phone ?&gt; &lt;\/dd&gt;\n                            &lt;?php endif ?&gt;\n                    \n                            &lt;?php if ( ! empty( $website ) ): ?&gt;\n                                &lt;dt&gt; &lt;?php _e( &#039;Website:&#039;, &#039;tribe-events-calendar&#039; ) ?&gt; &lt;\/dt&gt;\n                                &lt;dd class=&quot;url&quot;&gt; &lt;?php echo $website ?&gt; &lt;\/dd&gt;\n                            &lt;?php endif ?&gt;\n                    \n                            &lt;?php do_action( &#039;tribe_events_single_meta_venue_section_end&#039; ) ?&gt;\n                        &lt;\/dl&gt;\n                    &lt;\/div&gt;\n\t&lt;!--end venu meta--&gt;\n    \n     &lt;div style=&quot;clear:both;&quot;&gt;&lt;\/div&gt;\n                                      \n                     &lt;!-- Adds upcoming events --&gt;\n\t&lt;?php \/\/ Use the &#039;tribe_events_single_venue_posts_per_page&#039; to filter the \n\t \t  \/\/ number of events to display beneath the venue info on the venue page.\n\t?&gt; \n\t&lt;?php echo tribe_include_view_list( array(\n\t&#039;venue&#039; =&gt; $venue_id, \n\t&#039;eventDisplay&#039; =&gt; &#039;photo&#039;, \n\t&#039;posts_per_page&#039; =&gt; apply_filters( \n\t\t&#039;tribe_events_single_venue_posts_per_page&#039;, 3 ) \n\t\t) )?&gt;\n        \n\t&lt;?php \/*do_action(&#039;tribe_events_single_venue_after_upcoming_events&#039;) *\/?&gt;\n                       &lt;!--end upcoming events --&gt;\n                       \n                         \n                    \n\n                    \n                    &lt;div class=&quot;clear&quot; style=&quot;clear:both;&quot;&gt;&lt;\/div&gt;\n                  &lt;\/li&gt;\n  \n  &lt;?php  endwhile;\n\t\t\t\t\t}\n\t\t\t\t\twp_reset_query();  \/\/ Restore global post data stomped by the_post().\n\t\t\t\t\t?&gt;\n&lt;\/ul&gt;\n<\/code><\/pre>\n<p>Thanks in advance for your help.<\/p>\n<p>Cheers!<\/p>\n","protected":false},"template":"","class_list":["post-1007787","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>adding event info to venues using tribe_include_view_list array -<\/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\/adding-event-info-to-venues-using-tribe_include_view_list-array\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"adding event info to venues using tribe_include_view_list array -\" \/>\n<meta property=\"og:description\" content=\"Hi folks, I have added categories to venues and am displaying them on a page using a short code. I have events for the venue displaying but I need to filter that info more specifically. I am using the following code to retrieve the the info: &lt;?php echo tribe_include_view_list( array( &#039;venue&#039; =&gt; $venue_id, &#039;eventDisplay&#039; =&gt; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-10-10T14:05:04+00:00\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/\",\"name\":\"adding event info to venues using tribe_include_view_list array -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-23T13:02:08+00:00\",\"dateModified\":\"2015-10-10T14:05:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/#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\":\"adding event info to venues using tribe_include_view_list array\"}]},{\"@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":"adding event info to venues using tribe_include_view_list array -","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\/adding-event-info-to-venues-using-tribe_include_view_list-array\/","og_locale":"en_US","og_type":"article","og_title":"adding event info to venues using tribe_include_view_list array -","og_description":"Hi folks, I have added categories to venues and am displaying them on a page using a short code. I have events for the venue displaying but I need to filter that info more specifically. I am using the following code to retrieve the the info: &lt;?php echo tribe_include_view_list( array( &#039;venue&#039; =&gt; $venue_id, &#039;eventDisplay&#039; =&gt; [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/","article_modified_time":"2015-10-10T14:05:04+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/","name":"adding event info to venues using tribe_include_view_list array -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-23T13:02:08+00:00","dateModified":"2015-10-10T14:05:04+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-event-info-to-venues-using-tribe_include_view_list-array\/#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":"adding event info to venues using tribe_include_view_list array"}]},{"@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\/1007787","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1007787\/revisions"}],"predecessor-version":[{"id":1008025,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1007787\/revisions\/1008025"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1007787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}