The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
WPdiscuz does not r...
 
Share:
Notifications
Clear all

WPdiscuz does not replace comments.php when used with WP_Query loop

7 Posts
3 Users
0 Reactions
1,554 Views
Posts: 2
Topic starter
(@perminna)
New Member
Joined: 4 years ago

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?

6 Replies
Posts: 2
Topic starter
(@perminna)
New Member
Joined: 4 years ago

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.

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7977

@perminna,

we don't follow you well. We see this topic also is added by you. 

https://wordpress.org/support/topic/wpdiscuz-does-not-work-inside-wp-query/

I have a use case where I want to include a page/post with comments onto same page as another page/post. 

Easpatially this part isn't clearly explained. Please use some screenshots to explain the changes you want to make. 

Reply
Posts: 2
 yas
(@yas)
New Member
Joined: 2 weeks ago

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? 

Reply
3 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7977

@yas 

We’re really sorry but you cannot include multiple wpDiscuz forms on one page. Even if you attempt to include multiple comment sections, they will not function correctly. Comments will appear jumbled, with those from different posts grouped together. Regardless of which form a new comment is made with, it will only be added to one comment section

Reply
 yas
(@yas)
Joined: 2 weeks ago

New Member
Posts: 2

@asti Oh I see! I thought you'd be able to tell it the post_id. Is there a workaround that you could suggest? I am wanting to comment directly from a (archive type) page

Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7977

@yas 

I'm sorry, but there is not any solution I can provide you. 

Reply
Share: