Notifications
Clear all

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the gVectors community!

Merry Christmas and Happy Holidays! 🎄

Get Comments from Particular Post

4 Posts
3 Users
0 Reactions
2,122 Views
(@cwhlin)
Member Customer
Joined: 8 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: 7 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 7 years ago by lidstrom

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

It works now with that code.

 



   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6580
 

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