Calling wp_list_comments outside The Loop? – NOTHING
-
Hi guys,
I’m trying to spit out some recent post comments on my homepage. I can use most of the Comment template tags (https://codex.www.ads-software.com/Template_Tags) fine, but having real issues with wp_list_comments() for some reason???
I have tried it with parameters, but still no luck.
<?php $my_query = new WP_Query('cat=3&posts_per_page=1&order=dsc'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <? wp_list_comments(); ?> <?php endwhile; ?>
What am I doing wrong?
PS Outside the loop*
Thanks in advance,
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Calling wp_list_comments outside The Loop? – NOTHING’ is closed to new replies.