Notifications
Clear all

Get Comments from Particular Post

4 Posts
3 Users
0 Likes
1,613 Views
(@cwhlin)
Member Customer
Joined: 6 years ago
Posts: 3
Topic starter  

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: 6 years ago
Posts: 2
 

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!

This post was modified 6 years ago by lidstrom

   
ReplyQuote
(@lidstrom)
New Member
Joined: 6 years ago
Posts: 2
 

It works now with that code.

 


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 6 years ago
Posts: 5911
 

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