{"id":1112298,"date":"2016-05-09T09:54:11","date_gmt":"2016-05-09T16:54:11","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/"},"modified":"2016-05-24T09:35:08","modified_gmt":"2016-05-24T16:35:08","slug":"creating-a-custom-field-for-list-view-thumbnail","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/","title":{"rendered":"Creating a custom field for list view thumbnail"},"content":{"rendered":"<p>Right now the thumbnail is generated from the event&#8217;s featured image&#8230; I&#8217;ve created event categories and a custom page template that displays a list all events in a specific category.  We have several event series (Rhythm on the River, FountainSide, etc.) that we produce.  My boss doesn&#8217;t like how the thumbnails crop on this page:<\/p>\n<p><a href=\"http:\/\/www.sciotomile.com\/events-calendar\/rhythm-on-the-river\/\">http:\/\/www.sciotomile.com\/events-calendar\/rhythm-on-the-river\/<\/a><\/p>\n<p>She would like to separate the thumbnail from the featured image&#8230;   How could I achieve that?  Can I use the &#8220;Additional Fields&#8221; tab under settings and create a text field where I could just copy and paste the URL of a custom thumbnail graphic?  If so, how would I achieve that? <\/p>\n<p>Here is the code for the Rhythm on the River page template:<\/p>\n<pre><code>\n&lt;?php\n\/**\n * Template Name: Rhythm on the River\n * Description: Rhythm on the River Series Page\n *\n * @package WordPress\n * @subpackage sciotomile2011\n * @since Scioto Mile 2011\n *\/\n\nget_header(); ?&gt;\n\n\t\t&lt;div id=&quot;sidemenu&quot; class=&quot;primary-sidemenu-calendar&quot;&gt;\n\t\t\t\t&lt;?php if ( !function_exists(&#039;dynamic_sidebar&#039;)\n                \t|| !dynamic_sidebar(&#039;rhythm-on-the-river-logo&#039;) ) : ?&gt;\n\t\t&lt;?php endif; ?&gt;\n\t\t\t\t&lt;?php if ( !function_exists(&#039;dynamic_sidebar&#039;)\n                \t|| !dynamic_sidebar(&#039;rhythm-on-the-river-sidebar&#039;) ) : ?&gt;\n                &lt;?php endif; ?&gt;\n        &lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\n\t\t&lt;\/div&gt; &lt;!-- #sidemenu --&gt;\n\t\t\n\t\t&lt;div id=&quot;primary&quot; class=&quot;secondary-sidemenu-calendar&quot;&gt;\n\t\t\t&lt;div id=&quot;content&quot; role=&quot;main&quot;&gt;\n\t\t\t\t&lt;div id=&quot;breadcrumbs&quot;&gt;\n\t\t\t\t\t\n    \t\t\t\t\t&lt;a href=&quot;http:\/\/www.sciotomile.com\/&quot;&gt;&lt;div id=&quot;breadcrumb_HomeBttn&quot; title=&quot;Home&quot;&gt;&lt;\/div&gt;&lt;\/a&gt;&lt;img src=&quot;http:\/\/www.sciotomile.com\/wp-content\/themes\/sciotomile2011\/images\/breadcrumb_seperator.png&quot; \/&gt;&lt;?php menu_breadcrumbs(&#039;primary-menu&#039;); ?&gt;\n  \t\t\t\t\t\n\t\t\t\t&lt;\/div&gt; &lt;!-- #breadcrumbs --&gt;\n\t\t\t\t&lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\n\t\n\t\t\t\t&lt;?php the_post(); ?&gt;\n\n\t\t\t\t&lt;?php get_template_part( &#039;content&#039;, &#039;page&#039; ); ?&gt;\n                \n\n\t\t\t\t\n                &lt;?php \n \n\t\t\t\t\t$args = array(\n\t\t\t\t\t  &#039;post_status&#039;=&gt;&#039;publish&#039;,\n\t\t\t\t\t  &#039;post_type&#039;=&gt;array(TribeEvents::POSTTYPE),\n\t\t\t\t\t  &#039;posts_per_page&#039;=&gt;10,\n\t\t\t\t\t  \/\/order by startdate from newest to oldest\n\t\t\t\t\t  &#039;meta_key&#039;=&gt;&#039;_EventStartDate&#039;,\n\t\t\t\t\t  &#039;orderby&#039;=&gt;&#039;_EventStartDate&#039;,\n\t\t\t\t\t  &#039;order&#039;=&gt;&#039;ASC&#039;,\n\t\t\t\t\t  \/\/required in 3.x\n\t\t\t\t\t  &#039;eventDisplay&#039;=&gt;&#039;custom&#039;,\n\t\t\t\t\t  \/\/query events by category\n\t\t\t\t\t  &#039;tax_query&#039; =&gt; array(\n\t\t\t\t\t\t  array(\n\t\t\t\t\t\t\t  &#039;taxonomy&#039; =&gt; &#039;tribe_events_cat&#039;,\n\t\t\t\t\t\t\t  &#039;field&#039; =&gt; &#039;slug&#039;,\n\t\t\t\t\t\t\t  &#039;terms&#039; =&gt; &#039;rhythm-on-the-river&#039;,\n\t\t\t\t\t\t\t  &#039;operator&#039; =&gt; &#039;IN&#039;\n\t\t\t\t\t\t  ),\n\t\t\t\t\t  )\n\t\t\t\t\t);\n\t\t\t\t\t$get_posts = null;\n\t\t\t\t\t$get_posts = new WP_Query();\n\t\t\t\t\t \n\t\t\t\t\t$get_posts-&gt;query($args);\n\t\t\t\t\tif($get_posts-&gt;have_posts()) : while($get_posts-&gt;have_posts()) : $get_posts-&gt;the_post(); ?&gt;\n\t\t\t\t\t\n\n                    &lt;div class=&quot;event-series-list-container&quot;&gt;\n\t\t\t\n\t\t\t\t\t\t&lt;!--- Title---!&gt;\n\t\t\t\t\t\t&lt;div class=&quot;ROTR-series-list-title&quot;&gt;\n                        \t&lt;a&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;\n                        &lt;\/div&gt;\n\t\t\t\t\t\t&lt;!--- Title---!&gt;\n\n\t\t\t\t\t\t&lt;!--- Thumbnail ---!&gt;\n\t\t\t\t\t\t&lt;?php if ( has_post_thumbnail() ) {\n                            echo &#039;&lt;div class=&quot;event-thumbnail-image&quot;&gt;&#039; . tribe_event_featured_image( null, &#039;thumbnail&#039; ) . &#039;&lt;\/div&gt;&#039;; \n                        }\n                        else {\n                            echo &#039;&lt;div class=&quot;event-thumbnail-image&quot;&gt;&lt;img src=&quot;http:\/\/www.sciotomile.com\/wp-content\/themes\/sciotomile2011\/tribe-events\/Default_Events_Thumbnail.jpg&quot; \/&gt;&lt;\/div&gt;&#039;; \n\t\t\t\t\t\t\t}?&gt;\n                        &lt;!--- Thumbnail ---!&gt;\n                          \n\t\t\t\t\t\t&lt;div class=&quot;event-series-text&quot;&gt;\n                            &lt;div class=&quot;event-main-info&quot;&gt;\n                                &lt;?php if ( tribe_get_cost() ) : ?&gt;\n                                                &lt;span class=&quot;event-series-cost&quot;&gt;&lt;?php echo tribe_get_cost( null, true ); ?&gt;&lt;\/span&gt;\u00a0|\u00a0\n                                &lt;?php endif; ?&gt;\n                                            \n                                &lt;?php echo tribe_events_event_schedule_details() ?&gt;\n                                \n                                &lt;!-- Venue Info --&gt;\n                                \n                                &lt;div class=&quot;venue-information&quot;&gt;&lt;?php echo tribe_get_venue_link(); ?&gt;, &lt;?php echo tribe_get_address(); ?&gt;, &lt;?php echo tribe_get_city(); ?&gt;, &lt;?php echo tribe_get_region(); ?&gt; &lt;?php echo tribe_get_zip(); ?&gt;&lt;\/div&gt;\n    \n                                &lt;!-- Venue Info --&gt;\n                            &lt;\/div&gt;   \n                            &lt;div class=&quot;event-series-list-desc&quot;&gt;\n\t\t\t\t&lt;p&gt;&lt;?php echo wp_trim_words( get_the_content(), 45 ); ?&gt;&lt;\/p&gt;\n\t\t\t    &lt;\/div&gt;\n                            &lt;a&gt;&quot; class=&quot;tribe-events-read-more&quot; rel=&quot;bookmark&quot;&gt;&lt;?php _e( &#039;Find out more&#039;, &#039;tribe-events-calendar&#039; ) ?&gt; \u00bb&lt;\/a&gt;\t\t\t\t\t \n                        &lt;\/div&gt;    \n                        &lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\t\t\t\t\t\n                    &lt;\/div&gt;\n\t\t\t\t\t&lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\n\t\t\t&lt;?php\n                          endwhile;\n                          endif;\n                          wp_reset_query();\n                        ?&gt;\n             \n\t\t\t&lt;\/div&gt;&lt;!-- #content --&gt;\n\t\t&lt;\/div&gt;&lt;!-- #primary --&gt;\n\t\t&lt;div class=&quot;clear&quot;&gt;&lt;\/div&gt;\n\n&lt;?php get_footer(); ?&gt;\n<\/code><\/pre>\n<p>Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-1112298","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>Creating a custom field for list view thumbnail -<\/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\/creating-a-custom-field-for-list-view-thumbnail\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a custom field for list view thumbnail -\" \/>\n<meta property=\"og:description\" content=\"Right now the thumbnail is generated from the event&#8217;s featured image&#8230; I&#8217;ve created event categories and a custom page template that displays a list all events in a specific category. We have several event series (Rhythm on the River, FountainSide, etc.) that we produce. My boss doesn&#8217;t like how the thumbnails crop on this page: [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-24T16:35:08+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\/creating-a-custom-field-for-list-view-thumbnail\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/\",\"name\":\"Creating a custom field for list view thumbnail -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-05-09T16:54:11+00:00\",\"dateModified\":\"2016-05-24T16:35:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/#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\":\"Creating a custom field for list view thumbnail\"}]},{\"@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":"Creating a custom field for list view thumbnail -","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\/creating-a-custom-field-for-list-view-thumbnail\/","og_locale":"en_US","og_type":"article","og_title":"Creating a custom field for list view thumbnail -","og_description":"Right now the thumbnail is generated from the event&#8217;s featured image&#8230; I&#8217;ve created event categories and a custom page template that displays a list all events in a specific category. We have several event series (Rhythm on the River, FountainSide, etc.) that we produce. My boss doesn&#8217;t like how the thumbnails crop on this page: [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/","article_modified_time":"2016-05-24T16:35:08+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\/creating-a-custom-field-for-list-view-thumbnail\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/","name":"Creating a custom field for list view thumbnail -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-05-09T16:54:11+00:00","dateModified":"2016-05-24T16:35:08+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/creating-a-custom-field-for-list-view-thumbnail\/#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":"Creating a custom field for list view thumbnail"}]},{"@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\/1112298","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\/1112298\/revisions"}],"predecessor-version":[{"id":1112299,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1112298\/revisions\/1112299"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1112298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}