Random Posts (query_posts) doesn't display comments
-
I’ve created a custom template to display a random post page template for a particular category.
Here is my main loop:
<?php query_posts('showposts=1&cat=3&orderby=rand');?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php the_content(); ?> <?php comments_template( '', true ); ?> <?php endwhile; endif; ?>
But it doesn’t display the comment form.
When I include a reset query, it does include a comment form, but it is the comment for that particular post, not the comment form for the random post that is displayed.
How do I bring up the correct comment form with random posts?
- The topic ‘Random Posts (query_posts) doesn't display comments’ is closed to new replies.