Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3723314
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T06:13:32+00:00 2026-05-19T06:13:32+00:00

The following tells WordPress to display all posts with category Blog , The comment

  • 0

The following tells WordPress to display all posts with category Blog,

The comment template is included at the bottom, but is not shown when the apge renders.

Any suggestions?

home.php:

<?php
/**
 * Template Name: Blog
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
 get_header(); ?>
 <div id="main-content">
  <?php query_posts('category_name=Blog&showposts=10'); ?>
  <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
   <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php if ( is_front_page() ) { ?>
     <h2 class="entry-title"><?php the_title(); ?></h2>
    <?php } else { ?>
     <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } ?>
    <div class="entry-content">
     <?php the_content(); ?>
     <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
     <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    </div><!-- .entry-content -->
   </div><!-- #post-## -->
   <?php comments_template( '', true ); ?>
  <?php endwhile; ?>
 </div><!-- #main-content -->
 <?php get_footer(); ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T06:13:33+00:00Added an answer on May 19, 2026 at 6:13 am

    I think the problem is that you’re trying to use comments_template(); in a looping fashion — it’s only for single posts or page templates.

    See: http://codex.wordpress.org/Function_Reference/comments_template
    Quote: “Description — Loads the comment template. For use in single post and Page displays.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone tell me please why the following example work in Firefox but not
Visual Studio occasionally tells me: The line endings in the following files are not
I have the following code, but when I run it, it tells me that
I'm not sure why the following doesn't work. StructureMap tells me there is no
This is a tutorial I've been following and I've done everything that it tells
The compiler, given the following code, tells me Use of unassigned local variable 'x'.
can anybody tell me why is the following code not working? <script type=text/javascript src=../../Scripts/jquery.js></script>
I want to display all customers and their addresses and the number and total
I've been following this Symfony tutorial. In some sections it just tells me to
I got error when I compile the following code, the error tells me that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.