Hi,
I have a use case where I get a certain post through WP_Query and want to display its contents and dicussion. It's after a standard loop on a page. I get the contents and the comments okay but the comments and comment form is using the theme's comments template and WPdiscuz is not overriding it. WPdiscuz is working okay with standard loop with the same comments template.
Where should I look for a fix?
Okay, I spent 3 hours yesterday trying to get this figured out and continued today. It seems that if the standard loop (post) has comments closed, the WP_Query'ied post is also affected. I can get the comments to show but if without the main post's comments on the WPdiscuz doesn't fire. Need to continue debugging this.
Yes I understand - but you did not write the solution on either post. On the second post you link to this post having the solution..
I think I have a similar problem. I'll explain differently..
I have a CPT template -lets call it CPT1, and at the bottom of this CPT1 post template, I have a loop of CPT2 posts . I want the comments to be assigned to the post within the loop. I have reasons that has to be done this way.
So my intention: to get the comments to assign to the post they are submitted on (via the loop)
I have been trying to set the specific ID of the post I want to assign the comments to eg: [wpdiscuz_comments post_id=”{post_id}”] // Using Bricks and {post_id} is correct.
But it still keeps assigning the comments to CPT1. This is why I want to block comments being assigned to CPT1 OR custom set the post it assigns the comments to. How can we override them being assigned to the main post?