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...
 
Share:
Notifications
Clear all

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

7 Posts
3 Users
0 Reactions
1,951 Views
Posts: 2
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
(@perminna)
New Member
Joined: 4 years ago
[#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?


6 Replies
Posts: 2
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
(@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.


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

Illustrious Member
Posts: 8208
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. 


Posts: 2
 yas
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)
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? 


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

Illustrious Member
Posts: 8208
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


 yas
(@yas)
Joined: 8 months ago

New Member
Posts: 2
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


Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8208
Asti
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. 


Share: