{"id":25097,"date":"2012-09-14T08:36:49","date_gmt":"2012-09-14T15:36:49","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/posts-2-posts-connections\/"},"modified":"2015-07-07T06:26:09","modified_gmt":"2015-07-07T13:26:09","slug":"posts-2-posts-connections","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/","title":{"rendered":"Posts 2 Posts Connections"},"content":{"rendered":"<p>Hello,<br \/>\nFirstly, thanks so much for a great plugin. It&#8217;s exactly what my client needed and has helped me deliver some added value in the project. <\/p>\n<p>Here is what I&#8217;m trying to accomplish:<br \/>\nWe hold events for non-profits. Each event has a unique set of sponsors. I&#8217;ve created a custom post type called sponsors. Using the Posts 2 Posts plugin, I&#8217;ve registered a connection between tribe_events and sponsors. While editing an event post, I can add sponsors and all seems to be working great. <\/p>\n<p>Things break down when I try to display the connected sponsors on a single event post page. I have been in contact with scribu, the Posts 2 Posts author and he isn&#8217;t sure why this is happening. As a test, I&#8217;ve registered another connection type between two other post types and was able to successfully display connected posts. <\/p>\n<p>The WP Debug bar is giving me the following notices when on the events list page:<br \/>\nNOTICE: wp-content\/themes\/clarity\/events\/list.php:33 &#8211; Undefined variable: post<br \/>\nNOTICE: wp-content\/themes\/clarity\/events\/list.php:33 &#8211; Trying to get property of non-object<\/p>\n<p>On an event detail page, I get the following:<br \/>\nNOTICE: wp-includes\/query.php:2800 &#8211; Undefined offset: 1<br \/>\nNOTICE: wp-includes\/query.php:3592 &#8211; Trying to get property of non-object<br \/>\nNOTICE: wp-includes\/post-template.php:30 &#8211; Trying to get property of non-object<br \/>\nNOTICE: wp-includes\/post-template.php:206 &#8211; Trying to get property of non-object<\/p>\n<p>Is there any advice you can give me on troubleshooting this issue? <\/p>\n<p>Thanks so much.<\/p>\n","protected":false},"template":"","class_list":["post-25097","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 2 Posts Connections -<\/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-2-posts-connections\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Posts 2 Posts Connections -\" \/>\n<meta property=\"og:description\" content=\"Hello, Firstly, thanks so much for a great plugin. It&#8217;s exactly what my client needed and has helped me deliver some added value in the project. Here is what I&#8217;m trying to accomplish: We hold events for non-profits. Each event has a unique set of sponsors. I&#8217;ve created a custom post type called sponsors. Using [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:26:09+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-2-posts-connections\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/\",\"name\":\"Posts 2 Posts Connections -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-09-14T15:36:49+00:00\",\"dateModified\":\"2015-07-07T13:26:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/#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 2 Posts Connections\"}]},{\"@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 2 Posts Connections -","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-2-posts-connections\/","og_locale":"en_US","og_type":"article","og_title":"Posts 2 Posts Connections -","og_description":"Hello, Firstly, thanks so much for a great plugin. It&#8217;s exactly what my client needed and has helped me deliver some added value in the project. Here is what I&#8217;m trying to accomplish: We hold events for non-profits. Each event has a unique set of sponsors. I&#8217;ve created a custom post type called sponsors. Using [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/","article_modified_time":"2015-07-07T13:26:09+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-2-posts-connections\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/","name":"Posts 2 Posts Connections -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-09-14T15:36:49+00:00","dateModified":"2015-07-07T13:26:09+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/posts-2-posts-connections\/#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 2 Posts Connections"}]},{"@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\/25097","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\/25097\/revisions"}],"predecessor-version":[{"id":977939,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/25097\/revisions\/977939"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=25097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}