{"id":995309,"date":"2015-08-12T03:00:00","date_gmt":"2015-08-12T10:00:00","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/"},"modified":"2015-08-27T07:05:03","modified_gmt":"2015-08-27T14:05:03","slug":"customising-tribe_event_list-shortcode","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/","title":{"rendered":"customising [tribe_event_list] shortcode"},"content":{"rendered":"<p>I have a customised list-widget.php file to which I have added the line<br \/>\n<code>&lt;?php echo tribe_events_get_the_excerpt() ?&gt;<\/code><br \/>\nin order to display extract text.<\/p>\n<p>The full segment code is as follows<\/p>\n<pre><code>\t\t&lt;div class=&quot;&lt;?php tribe_events_event_classes() ?&gt;&quot;&gt;\t\n\t\t\t&lt;?php club_tribe_events_list_the_date_headers() ?&gt;\t    \n\t\t\t&lt;?php tribe_get_template_part( &#039;pro\/widgets\/modules\/single-event&#039;, null, $instance ) ?&gt;\n\t\t\t&lt;?php echo tribe_events_get_the_excerpt() ?&gt;\n\t\t&lt;\/div&gt;<\/code><\/pre>\n<p>Below you can see how this looks and how I want it to be changed..<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.diditon.com\/share\/7.jpg\" alt=\"event list\" \/><\/p>\n<p>Also &#8211; is there a way of making the excerpt return nothing if there is no text in the actual &#8216;excerpt&#8217; field? At present it takes rather too long a chunk of text from the main text if there is nothing in the field.<\/p>\n","protected":false},"template":"","class_list":["post-995309","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>customising [tribe_event_list] shortcode -<\/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\/customising-tribe_event_list-shortcode\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"customising [tribe_event_list] shortcode -\" \/>\n<meta property=\"og:description\" content=\"I have a customised list-widget.php file to which I have added the line &lt;?php echo tribe_events_get_the_excerpt() ?&gt; in order to display extract text. The full segment code is as follows &lt;div class=&quot;&lt;?php tribe_events_event_classes() ?&gt;&quot;&gt; &lt;?php club_tribe_events_list_the_date_headers() ?&gt; &lt;?php tribe_get_template_part( &#039;pro\/widgets\/modules\/single-event&#039;, null, $instance ) ?&gt; &lt;?php echo tribe_events_get_the_excerpt() ?&gt; &lt;\/div&gt; Below you can see how this [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-08-27T14:05:03+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.diditon.com\/share\/7.jpg\" \/>\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\/customising-tribe_event_list-shortcode\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/\",\"name\":\"customising [tribe_event_list] shortcode -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.diditon.com\/share\/7.jpg\",\"datePublished\":\"2015-08-12T10:00:00+00:00\",\"dateModified\":\"2015-08-27T14:05:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#primaryimage\",\"url\":\"http:\/\/www.diditon.com\/share\/7.jpg\",\"contentUrl\":\"http:\/\/www.diditon.com\/share\/7.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#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\":\"customising [tribe_event_list] shortcode\"}]},{\"@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":"customising [tribe_event_list] shortcode -","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\/customising-tribe_event_list-shortcode\/","og_locale":"en_US","og_type":"article","og_title":"customising [tribe_event_list] shortcode -","og_description":"I have a customised list-widget.php file to which I have added the line &lt;?php echo tribe_events_get_the_excerpt() ?&gt; in order to display extract text. The full segment code is as follows &lt;div class=&quot;&lt;?php tribe_events_event_classes() ?&gt;&quot;&gt; &lt;?php club_tribe_events_list_the_date_headers() ?&gt; &lt;?php tribe_get_template_part( &#039;pro\/widgets\/modules\/single-event&#039;, null, $instance ) ?&gt; &lt;?php echo tribe_events_get_the_excerpt() ?&gt; &lt;\/div&gt; Below you can see how this [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/","article_modified_time":"2015-08-27T14:05:03+00:00","og_image":[{"url":"http:\/\/www.diditon.com\/share\/7.jpg","type":"","width":"","height":""}],"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\/customising-tribe_event_list-shortcode\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/","name":"customising [tribe_event_list] shortcode -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#primaryimage"},"image":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#primaryimage"},"thumbnailUrl":"http:\/\/www.diditon.com\/share\/7.jpg","datePublished":"2015-08-12T10:00:00+00:00","dateModified":"2015-08-27T14:05:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#primaryimage","url":"http:\/\/www.diditon.com\/share\/7.jpg","contentUrl":"http:\/\/www.diditon.com\/share\/7.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-tribe_event_list-shortcode\/#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":"customising [tribe_event_list] shortcode"}]},{"@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\/995309","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":4,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/995309\/revisions"}],"predecessor-version":[{"id":995501,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/995309\/revisions\/995501"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=995309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}