Hi,
Would like to deactivate comments on my contact page.
Code in the template is:
<?php if (get_option('show_pagescomments') == 'on') comments_template('', true); ?>
How do I insert the
if ( is_page( 'about' ) )
Thanks in advance for your help.
try:
<?php if (get_option('show_pagescomments') == 'on' && !is_page( 'about' ) ) comments_template('', true); ?>
in words:
if ('option on' AND NOT page(about) ) ....
<?php if (get_option('show_pagescomments') == 'on' && is_page( 'about' ) ) comments_template('', true); ?>
Many thanks to both of you.
alchymyth code worked straight away.
I'm very, very grateful and wish you a nice Sunday.