{"id":24673,"date":"2012-09-07T02:22:41","date_gmt":"2012-09-07T09:22:41","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/"},"modified":"2012-09-07T02:22:41","modified_gmt":"2012-09-07T09:22:41","slug":"weir-get_comments-behaviour-not-expected-at-all","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/","title":{"rendered":"weir get_comments behaviour (not expected at all!)"},"content":{"rendered":"<p>I&#8217;m using WPML so I&#8217;ve 3 languages, events are in 3 languages, but I&#8217;d like to have 1 common comment area for all 3. So all language comments together. To do this I decided to use ID of parent post and post comments to that one from all other languages&#8230; in theory this should be easy and with ordinary wordpress post I managed to do this, but with tribe_events I&#8217;m having trouble!<\/p>\n<p>In ecp-single-template.php I have:<\/p>\n<p>                                   $current_post_duplicate_id,<br \/>\n                                      &#8216;number&#8217; =&gt; 25,<br \/>\n                                      &#8216;status&#8217; =&gt; &#8216;approve&#8217;,<br \/>\n                                      &#8216;type&#8217; =&gt; &#8216;comment&#8217;,<br \/>\n                                      &#8216;order&#8217; =&gt; &#8216;ASC&#8217;<br \/>\n                                    ) );<\/p>\n<p>                                    foreach ($recent_comments as $comment) {<br \/>\n                                  ?&gt;<br \/>\n                                      &lt;li id=&quot;attendee-comment_ID; ?&gt;&#8221;&gt;<br \/>\n                                          <a href=\"#\">comment_author_email, $size = &#8217;50&#8217;, $alt = $comment-&gt;comment_author.&#8217; is attending this event&#8217; ); ?&gt;<\/a><br \/>\n                                          comment_author; ?&gt;<\/p>\n<p>$current_post_duplicate_id is same for all 3 posts and equals original event ID. I echoed it out and it is 9 in all 3 language cases.<\/p>\n<p>Problem is that comments from Post ID9 are not displayed, in fact I only see current post comments. So get_comments is ignoring post_id.<\/p>\n<p>Any help appreciated! since I made this work with normal comments it is definitely some quirkiness with tribe events plugin!<\/p>\n<p>Ty.<\/p>\n","protected":false},"template":"","class_list":["post-24673","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>weir get_comments behaviour (not expected at all!) -<\/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\/weir-get_comments-behaviour-not-expected-at-all\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"weir get_comments behaviour (not expected at all!) -\" \/>\n<meta property=\"og:description\" content=\"I&#8217;m using WPML so I&#8217;ve 3 languages, events are in 3 languages, but I&#8217;d like to have 1 common comment area for all 3. So all language comments together. To do this I decided to use ID of parent post and post comments to that one from all other languages&#8230; in theory this should be [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/\" \/>\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\/weir-get_comments-behaviour-not-expected-at-all\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/\",\"name\":\"weir get_comments behaviour (not expected at all!) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2012-09-07T09:22:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/#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\":\"weir get_comments behaviour (not expected at all!)\"}]},{\"@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":"weir get_comments behaviour (not expected at all!) -","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\/weir-get_comments-behaviour-not-expected-at-all\/","og_locale":"en_US","og_type":"article","og_title":"weir get_comments behaviour (not expected at all!) -","og_description":"I&#8217;m using WPML so I&#8217;ve 3 languages, events are in 3 languages, but I&#8217;d like to have 1 common comment area for all 3. So all language comments together. To do this I decided to use ID of parent post and post comments to that one from all other languages&#8230; in theory this should be [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/","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\/weir-get_comments-behaviour-not-expected-at-all\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/","name":"weir get_comments behaviour (not expected at all!) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2012-09-07T09:22:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/weir-get_comments-behaviour-not-expected-at-all\/#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":"weir get_comments behaviour (not expected at all!)"}]},{"@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\/24673","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":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/24673\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=24673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}