Home › Forums › Calendar Products › Events Calendar PRO › weir get_comments behaviour (not expected at all!)
- This topic has 6 replies, 3 voices, and was last updated 11 years, 5 months ago by Leah.
-
AuthorPosts
-
September 7, 2012 at 2:22 am #24673SandroParticipant
I’m using WPML so I’ve 3 languages, events are in 3 languages, but I’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… in theory this should be easy and with ordinary wordpress post I managed to do this, but with tribe_events I’m having trouble!
In ecp-single-template.php I have:
$current_post_duplicate_id,
‘number’ => 25,
‘status’ => ‘approve’,
‘type’ => ‘comment’,
‘order’ => ‘ASC’
) );foreach ($recent_comments as $comment) {
?>
<li id="attendee-comment_ID; ?>”>
comment_author_email, $size = ’50’, $alt = $comment->comment_author.’ is attending this event’ ); ?>
comment_author; ?>$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.
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.
Any help appreciated! since I made this work with normal comments it is definitely some quirkiness with tribe events plugin!
Ty.
September 19, 2012 at 8:40 am #25408LeahMemberHey Sandro,
Sorry this post seems to have slipped through the cracks! We’ll take a good look at your issue in the next 24 hours and get you a substantive response as soon as possible.
Thanks for your patience,
LeahSeptember 21, 2012 at 3:12 pm #25552RobMemberHey there Sandro. Just wanted to follow-up to show that we haven’t forgotten about this; we actually have a WPML expert on the team here who I’m specifically waiting to have address this issue for you. However he was out this entire week and not addressing support as a result.
I’ve added this as the top priority support thread for him to hit on his return Monday, so know that relief is in sight. Thanks for your patience on this end so far and please let me know what else you need here.
September 28, 2012 at 2:31 pm #25885RobMemberHi again Sandro. Wanted to follow-up on this now that I’ve had a chance to talk with Daniel, our resident WPML expert. It sounds like what you’re requesting here is requested by a lot of folks, but WPML doesn’t currently support it in-full. The good news is it seems you resolved this for the most part; the remaining problem seems largely due to a wrong query somewhere. Daniel can take a look, but would you mind posting the complete code from your ecp-single-template file? It looks like what we see above is incomplete…I’d recommend dropping it into pastie.org and sharing the link here.
While the remaining issue doesn’t quite seem specific to our plugin, Daniel will be happy to review your code and see if he can point you in the right direction. Cheers!
October 8, 2012 at 8:52 am #26245RobMemberHey Sandro…just wanted to follow-up on this, did my last note make sense? Do you need anything else from us here, or can this thread be closed out?
October 8, 2012 at 8:54 am #26247SandroParticipantYou can close this topic I moved to qtranslate which by default doesn’t require combining comments or star ratings. So I’m done 🙂 ty.
October 8, 2012 at 12:25 pm #26276LeahMemberThanks Sandro. I’ll close it out.
-
AuthorPosts
- The topic ‘weir get_comments behaviour (not expected at all!)’ is closed to new replies.