Skip to main content
8 events
when toggle format what by license comment
Jun 4, 2011 at 22:09 vote accept KDP
Jun 1, 2011 at 7:47 answer added Drake timeline score: 1
May 26, 2011 at 16:16 comment added KDP @Michael, again, thanks for the note. I did change them to single quotes, but I still have the same problem. When I just have this part of the code, comments disappear, which is what I want: <?php wp_reset_query(); if ( is_page_template(‘basic-template.php’) ) { comments_template(); } ?> However, when I put in the "Else" statement, comments appear again, even though I'm using the basic-template.php. I think there's something wrong with my "Else" statement. Any thoughts?
May 26, 2011 at 9:45 comment added Michael @KPD - i just realized that there are the odd quotes around the template name: ( is_page_template(‘basic-template.php’) ) - check this in your code, and try and replace them with the straight single quotes '
May 25, 2011 at 20:28 comment added KDP @Michael, thanks for your post. Unfortunately, that didn't do the trick. I have used the code above in place of <?php comments_template( '', true ); ?> for these TwentyTen files: loop.php, loop-page.php, loop-single.php. It has no effect. My basic template references get_template_part( 'loop', 'index' ); Is my replacement code right?
May 25, 2011 at 7:33 comment added Michael the change might need to be done in loop-page.php; depending on the line in your basic-template.php
May 24, 2011 at 22:21 answer added NW Tech timeline score: 0
May 24, 2011 at 22:07 history asked KDP CC BY-SA 3.0