{"id":1127931,"date":"2016-06-16T09:10:55","date_gmt":"2016-06-16T16:10:55","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/"},"modified":"2016-06-16T09:11:51","modified_gmt":"2016-06-16T16:11:51","slug":"previous-next-event-links-with-thumbnails","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/","title":{"rendered":"Previous &amp; Next event links with thumbnails"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I am trying to create &#8220;Previous&#8221; and &#8220;Next&#8221; event links on my single-event.php page, but I also want to grab the thumbnails of the events. <\/p>\n<p> I know that there are two functions that grab the links but they do not grab the thumbnails. <\/p>\n<pre><code>&lt;?php tribe_the_prev_event_link( &#039;%title%&#039; ) ?&gt;\n&lt;?php tribe_the_next_event_link( &#039;%title%&#039; ) ?&gt;<\/code><\/pre>\n<p>I tried working with the <strong>get_adjacent_post<\/strong> function but it does not return anything when used. <\/p>\n<pre><code> &lt;?php $prev_post = get_adjacent_post( true, &#039;&#039;, true); ?&gt;\n &lt;?php if ( is_a( $prev_post, &#039;WP_Post&#039; ) ) { ?&gt;\n \t&lt;a href=&quot;&lt;?php echo get_permalink( $prev_post-&gt;ID ); ?&gt;&quot;&gt;\n \t\t&lt;?php echo tribe_event_featured_image( $prev_post-&gt;ID, &#039;medium&#039;, false ); ?&gt;\n \t\t&lt;div class=&quot;content&quot;&gt;&lt;?php echo get_the_title( $prev_post-&gt;ID ); ?&gt;&lt;\/div&gt;\n \t&lt;\/a&gt;\n &lt;?php } ?&gt;<\/code><\/pre>\n<p>Any help would be greatly appreciated!<\/p>\n","protected":false},"template":"","class_list":["post-1127931","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>Previous &amp; Next event links with thumbnails -<\/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\/previous-next-event-links-with-thumbnails\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Previous &amp; Next event links with thumbnails -\" \/>\n<meta property=\"og:description\" content=\"Hi, I am trying to create &#8220;Previous&#8221; and &#8220;Next&#8221; event links on my single-event.php page, but I also want to grab the thumbnails of the events. I know that there are two functions that grab the links but they do not grab the thumbnails. &lt;?php tribe_the_prev_event_link( &#039;%title%&#039; ) ?&gt; &lt;?php tribe_the_next_event_link( &#039;%title%&#039; ) ?&gt; I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-06-16T16:11:51+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=\"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\/previous-next-event-links-with-thumbnails\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/\",\"name\":\"Previous &amp; Next event links with thumbnails -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-06-16T16:10:55+00:00\",\"dateModified\":\"2016-06-16T16:11:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/#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\":\"Previous &amp; Next event links with thumbnails\"}]},{\"@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":"Previous &amp; Next event links with thumbnails -","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\/previous-next-event-links-with-thumbnails\/","og_locale":"en_US","og_type":"article","og_title":"Previous &amp; Next event links with thumbnails -","og_description":"Hi, I am trying to create &#8220;Previous&#8221; and &#8220;Next&#8221; event links on my single-event.php page, but I also want to grab the thumbnails of the events. I know that there are two functions that grab the links but they do not grab the thumbnails. &lt;?php tribe_the_prev_event_link( &#039;%title%&#039; ) ?&gt; &lt;?php tribe_the_next_event_link( &#039;%title%&#039; ) ?&gt; I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/","article_modified_time":"2016-06-16T16:11:51+00:00","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\/previous-next-event-links-with-thumbnails\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/","name":"Previous &amp; Next event links with thumbnails -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-06-16T16:10:55+00:00","dateModified":"2016-06-16T16:11:51+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/previous-next-event-links-with-thumbnails\/#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":"Previous &amp; Next event links with thumbnails"}]},{"@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\/1127931","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\/1127931\/revisions"}],"predecessor-version":[{"id":1127932,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1127931\/revisions\/1127932"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1127931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}