The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] WPdiscuz does not replace comments.php when used with WP_Query loop
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Oct 21, 2021 10:37 am
(@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?
This topic was modified 4 years ago by
perminna
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Oct 21, 2021 10:58 am
(@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.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8208
Oct 22, 2021 4:01 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@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.
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
May 19, 2025 3:12 pm
(@yas)
New Member
Joined: 8 months 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?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8208
May 19, 2025 11:38 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@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
(@yas)
Joined: 8 months ago
New Member
Posts: 2
May 21, 2025 1:44 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@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
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8208
May 21, 2025 2:00 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@yas
I'm sorry, but there is not any solution I can provide you.