{"id":950337,"date":"2015-03-23T21:35:46","date_gmt":"2015-03-24T04:35:46","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/"},"modified":"2015-05-25T18:10:10","modified_gmt":"2015-05-26T01:10:10","slug":"posts-that-feed-in-events-of-current-posts-author","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/","title":{"rendered":"Posts that feed in events of current posts author"},"content":{"rendered":"<p>I am currently making a site that will have coach pages. Each coach will have one page which is a custom post type and they will have their own login. Each coach will be able to create events using the ECP Community Events add on. <\/p>\n<p>Currently on my coach-single.php template I am pulling in upcoming events. My goal is to only feed in events that relate to that  current posts author. Hope that makes sense. This is the current code I am using. <\/p>\n<pre><code>&lt;?php\n\nglobal $post;\n$all_events = tribe_get_events(\n\tarray(\t\t\t\t\t\t\t\t\t\t\n\t\t&#039;eventDisplay&#039;=&gt;&#039;upcoming&#039;,\n\t\t&#039;posts_per_page&#039;=&gt;5,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n)\n);\n\nforeach($all_events as $post) {\nsetup_postdata($post);\n?&gt;\n\t\t\t\t\t\t\t\n&lt;ul&gt;\t\n\t&lt;li class=&quot;date&quot;&gt;&lt;?php echo tribe_get_start_date( $post-&gt;ID, false, &#039;M&#039; ); ?&gt;&lt;br\/&gt;&lt;span&gt;&lt;?php echo tribe_get_start_date( $post-&gt;ID, false, &#039;j&#039; ); ?&gt;&lt;\/span&gt;&lt;\/li&gt;\n\t&lt;li class=&quot;title&quot;&gt;&lt;a href=&quot;&lt;?php echo tribe_get_event_link(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\t\t\n\t&lt;li class=&quot;time&quot;&gt;&lt;?php echo tribe_get_start_date( $post-&gt;ID, false, &#039;g:i a&#039; ); ?&gt;&lt;\/li&gt;\t\t\t\t\t\t\n&lt;\/ul&gt;\n\n&lt;?php } \/\/endforeach ?&gt;\n&lt;?php wp_reset_query(); ?&gt;\n<\/code><\/pre>\n<p>I really have not done much else to this site but you can see and example of one of the pages at http:\/\/coaches.21daysugardetox.com\/coaches\/craig-moser\/<\/p>\n","protected":false},"template":"","class_list":["post-950337","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>Posts that feed in events of current posts author -<\/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\/posts-that-feed-in-events-of-current-posts-author\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Posts that feed in events of current posts author -\" \/>\n<meta property=\"og:description\" content=\"I am currently making a site that will have coach pages. Each coach will have one page which is a custom post type and they will have their own login. Each coach will be able to create events using the ECP Community Events add on. Currently on my coach-single.php template I am pulling in upcoming [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-26T01:10:10+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\/posts-that-feed-in-events-of-current-posts-author\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/\",\"name\":\"Posts that feed in events of current posts author -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-03-24T04:35:46+00:00\",\"dateModified\":\"2015-05-26T01:10:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/#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\":\"Posts that feed in events of current posts author\"}]},{\"@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":"Posts that feed in events of current posts author -","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\/posts-that-feed-in-events-of-current-posts-author\/","og_locale":"en_US","og_type":"article","og_title":"Posts that feed in events of current posts author -","og_description":"I am currently making a site that will have coach pages. Each coach will have one page which is a custom post type and they will have their own login. Each coach will be able to create events using the ECP Community Events add on. Currently on my coach-single.php template I am pulling in upcoming [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/","article_modified_time":"2015-05-26T01:10:10+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\/posts-that-feed-in-events-of-current-posts-author\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/","name":"Posts that feed in events of current posts author -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-03-24T04:35:46+00:00","dateModified":"2015-05-26T01:10:10+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-that-feed-in-events-of-current-posts-author\/#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":"Posts that feed in events of current posts author"}]},{"@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\/950337","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\/950337\/revisions"}],"predecessor-version":[{"id":950378,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/950337\/revisions\/950378"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=950337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}