AI Assistant
Notifications
Clear all

Get Comments from Particular Post

4 Posts
3 Users
0 Reactions
2,254 Views
(@cwhlin)
Member Customer
Joined: 8 years ago
Posts: 3
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
  [#2654]

Hi. I'd like to get the comments for a particular post to show up on another page (while retaining all the WPDiscuz format and functions).  Any quick and easy way to do that (other than using an iframe)?



   
Quote
(@lidstrom)
New Member
Joined: 8 years ago
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
 

Hi! I'm trying to do the same thing.

I tried this code:

$args = array(
'p' => 868 // works on my server; use whatever ID you need
);
$qry = new WP_Query($args);

if ($qry->have_posts()) {
while ($qry->have_posts()) {
$qry->the_post();
comments_template();
}
}

It works but it shows the comments with the default style from WP. The plugin doesn't work.

Do you know why?

Thanks!



   
ReplyQuote
(@lidstrom)
New Member
Joined: 8 years ago
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
 

It works now with that code.

 



   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
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
 

Dear @cwhlin, @lidstrom,

I'm really sorry but it's not possible. You'll have a lot of conflicts. wpDiscuz is not designed to work this way.



   
ReplyQuote
Share:
Scroll to top