I'm new to Wordpress and I'm trying to edit the Twenty Ten theme so that my template for basic pages (basic-template.php) does not show the comments box. I do want the comments box to show up on other pages, such as blog posts. I'm pretty sure that changes need to be made in loop.php, but my doesn't seem to be having the right effect. For the comments box, I edited:
<?php comments_template( '', true ); ?>
to be as follows.
<?php
wp_reset_query();
if ( is_page_template(‘basic-template.php’) ) {
comments_template();
} else {
comments_template( '', true );
}
?>
When I get rid of the else statement, the comments disappear, so I think the problem is my code for that part. Any advice would be much appreciated!
( is_page_template(‘basic-template.php’) )
- check this in your code, and try and replace them with the straight single quotes'