{"id":958064,"date":"2015-04-24T08:17:51","date_gmt":"2015-04-24T15:17:51","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/"},"modified":"2015-07-07T06:31:52","modified_gmt":"2015-07-07T13:31:52","slug":"events-list-and-sidebar","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/","title":{"rendered":"Events list and sidebar"},"content":{"rendered":"<p>Hi,<\/p>\n<p>We&#8217;ve been using The Events Calendar for quite a while now (availabe here: http:\/\/agenda.casasbrancas.pt) and we&#8217;re facing different issues that we didn&#8217;t clear resolve. First we wanted to list the next number of events on a specific page, on a specific region. We&#8217;ve scrapped that and found a remedy using this solution:<\/p>\n<p>function getAgenda(){<br \/>\n\t$date=new DateTime();<br \/>\n\t$events = tribe_get_events( array(<br \/>\n\t\t&#8216;posts_per_page&#8217; =&gt; 3,<br \/>\n\t\t&#8216;start_date&#8217; =&gt; $date-&gt;format(&#8216;Y-m-d H:i:s&#8217;)<br \/>\n\t) );<br \/>\n\tforeach ( $events as $event ) {<br \/>\n\t\techo &#8216;&lt;div class=&#8221;portfolio-meta-wrapper&#8221; style=&#8221;float: left; width: 210px; margin-left: 5px; text-align: left;&#8221;&gt;&#8217;;<br \/>\n\t\techo &#8216;<a>ID)  .'&#8221;&gt;&#8217;. get_the_post_thumbnail($event-&gt;ID, &#8216;thumbnail&#8217; ). &#8216;<\/a>&#8216;;<br \/>\n\t\techo &#8216;&lt;h3 class=&#8221;the-title&#8221;&gt;<a>ID) . &#8216;&#8221; rel=&#8221;bookmark&#8221;&gt;&#8217; . $event-&gt;post_title . &#8216;<\/a>&lt;\/h2&gt;&#8217;;<\/p>\n<p>\t\tif(tribe_get_end_date($event-&gt;ID, false)!=tribe_get_start_date($event-&gt;ID,false)){<br \/>\n\t\t\t$str_enddate=tribe_get_end_date($event-&gt;ID, true);<br \/>\n\t\t}else{<br \/>\n\t\t\t$str_enddate=tribe_get_end_time($event-&gt;ID,false);<br \/>\n\t\t}<\/p>\n<p>\t   echo &#8216;&lt;div style=&#8221;font-size:80%;&#8221;&gt;&lt;b&gt;&#8217; . tribe_get_recurrence_text($event-&gt;ID) . &#8216;&lt;br&gt;&#8217; .tribe_get_start_date($event-&gt;ID,true) . &#8216; &#8211; &#8216; . $str_enddate . &#8216;&lt;\/b&gt;&lt;\/div&gt;&#8217;;<br \/>\n\t\techo &#8216;&lt;div class=&#8221;excerto_agenda&#8221;&gt;&#8217; . $event-&gt;post_excerpt . &#8216;&lt;\/div&gt;&#8217;;<br \/>\n\t\techo &#8216;&lt;\/div&gt;&#8217;;<\/p>\n<p>\t}<br \/>\n}<\/p>\n<p>We&#8217;re a tourism association and you can see this feature on every member&#8217;s page, like this one: http:\/\/herdadedamatinha.casasbrancas.pt. Is posted and showing but not working well, for instance we couldn&#8217;t sort out the code for the local and the responsiveness behaviour is not really good.<\/p>\n<p>Other thing is the sidebar that is missing in every event. Also need some help on that. We&#8217;re using a template that&#8217;s based on Visual Composer and we&#8217;re using WPML for translations. We have dug the code but couldn&#8217;t find a solution for it. (http:\/\/www.casasbrancas.pt\/evento\/sons-do-mira-em-concertos-de-pascoa)<\/p>\n<p>We also wanted to control the featured image better, so we could style each page better, but I guess we have to do that on the CSS file. <\/p>\n<p>Finally, our recurrent events don&#8217;t show up on certain events. They exist, but we don&#8217;t know what&#8217;s the problem. I&#8217;m a bit of afraid to scratch down the plugins or move to another template for testing. But we have a copy of the site on another address that we can use for that effect. <\/p>\n<p>I don&#8217;t know if you can help us. But we&#8217;ll be most thankful for that. Thank you.<\/p>\n<p>Best regards,<\/p>\n<p>Our best regards.<\/p>\n","protected":false},"template":"","class_list":["post-958064","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>Events list and sidebar -<\/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\/events-list-and-sidebar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Events list and sidebar -\" \/>\n<meta property=\"og:description\" content=\"Hi, We&#8217;ve been using The Events Calendar for quite a while now (availabe here: http:\/\/agenda.casasbrancas.pt) and we&#8217;re facing different issues that we didn&#8217;t clear resolve. First we wanted to list the next number of events on a specific page, on a specific region. We&#8217;ve scrapped that and found a remedy using this solution: function getAgenda(){ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:31:52+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=\"2 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\/events-list-and-sidebar\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/\",\"name\":\"Events list and sidebar -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-04-24T15:17:51+00:00\",\"dateModified\":\"2015-07-07T13:31:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/#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\":\"Events list and sidebar\"}]},{\"@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":"Events list and sidebar -","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\/events-list-and-sidebar\/","og_locale":"en_US","og_type":"article","og_title":"Events list and sidebar -","og_description":"Hi, We&#8217;ve been using The Events Calendar for quite a while now (availabe here: http:\/\/agenda.casasbrancas.pt) and we&#8217;re facing different issues that we didn&#8217;t clear resolve. First we wanted to list the next number of events on a specific page, on a specific region. We&#8217;ve scrapped that and found a remedy using this solution: function getAgenda(){ [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/","article_modified_time":"2015-07-07T13:31:52+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/","name":"Events list and sidebar -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-04-24T15:17:51+00:00","dateModified":"2015-07-07T13:31:52+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/events-list-and-sidebar\/#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":"Events list and sidebar"}]},{"@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\/958064","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\/958064\/revisions"}],"predecessor-version":[{"id":958298,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/958064\/revisions\/958298"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=958064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}