The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
WPdiscuz does not r...
 
Notifications
Clear all

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

7 Posts
3 Users
0 Reactions
2,139 Views
(@perminna)
Posts: 2
New Member
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
 
[#3301]

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?


 
Posted : 21/10/2021 10:37 am
(@perminna)
Posts: 2
New Member
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
 

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.


 
Posted : 21/10/2021 10:58 am
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
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
 

@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. 


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 22/10/2021 4:01 pm
 yas
(@yas)
Posts: 2
New Member
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
 

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? 


 
Posted : 19/05/2025 3:12 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
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
 

@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


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 19/05/2025 11:38 pm
 yas
(@yas)
Posts: 2
New Member
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
 

@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


 
Posted : 21/05/2025 1:44 pm
Asti
 Asti
(@asti)
Posts: 8267
Illustrious Member Support
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
 

@yas 

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


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 21/05/2025 2:00 pm