I currently use a self-built theme with the following code:
add_action('wp_ajax_getPostComments', 'getPostComments');
add_action('wp_ajax_nopriv_getPostComments', 'getPostComments');
function getPostComments() {
$ID = $_POST["post_id"];
query_posts( array( 'p' => $ID ) );
if ( have_posts() ) {
while( have_posts() ) {
the_post();
comments_template();
die();
}
}
exit;
}
However, when I’m calling this action, it returns the default WP comments and not the WPDiscuz ones.
Any ideas?