• Resolved peacherd

    (@peacherd)


    Hello there,

    I have been trying to make WPDiscuz appear through Ajax on my single.php without success. Somehow, when loading comments_template() through WP Query, WPDiscuz doesn’t appear and the comment system reverts to the native theme.

    Is there anyway to fix this? Thanks for your help.

    My code :

    $qry = new WP_Query( array( 'p' => 1 ) );
                    if ($qry->have_posts()) {
                      while ($qry->have_posts()) {
                        $qry->the_post();
                         global $withcomments;
                         $withcomments = true; 
                         comments_template();
                    }
                   }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘WP Query comments_template() not appearing’ is closed to new replies.