Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

Get Comments from Particular Post

4 Posts
3 Users
0 Reactions
1,919 Views
(@cwhlin)
Member Customer
Joined: 7 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: 6450
 

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