Hello, I am using wordpress to develop a static website. Is there any mod with which I can disable comment posting on my pages(NOT posts). Thanks.
You can manually disable commenting at the time of creation of each page or post. Just untick the option as seen on the screenshot.
Well thanks inman again, a rep coming your way! Another problem, I successfully disabledd comments but on my site it still says under each page "No Comments". ~Maneel
The code from the wordpress template which shows the "No comments" can be removed manually - but delete with care !
I'm interested in this, and was looking for some way to globally disallow both comments and the comment box from appearing.
In the theme i'm using the following code is on my page.php file <h1>Comments</h1> <?php comments_template(); // Get wp-comments.php template ?> </div> HTML: That is referencing the wp-comments.php file which contains the following code: <!--comments area--> <?php if ($comments) : ?> <p><?php comments_number(__('No Comment'), __('1 Comment so far'), __('% Comments so far')); ?></p> <ol id="commentlist"> <?php foreach ($comments as $comment) : ?> <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> <?php comment_author_link()?> on <?php comment_date('F j, Y') ?> <?php comment_time()?> <?php edit_comment_link(__("Edit This"), ''); ?> <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> <?php endif; ?> <?php if(the_author('', false) == get_comment_author()) echo "<div class='commenttext-admin'>"; else echo "<div class='commenttext'>"; comment_text(); echo "</div>"; ?> </li> <?php /* Changes every other comment to a different class */ if ('alt' == $oddcomment){ $oddcomment = 'standard'; } else { $oddcomment = 'alt'; } ?> <?php endforeach; /* end for each comment */ ?> </ol> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post-> comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post-> comment_status) : ?> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> <!-- Comment Form --> <div id="commentsform"> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"> Logout » </a> </p> <?php else : ?> <p><?php _e('Name ');?><?php if ($req) _e('(required)'); ?><br /> <input type="text" name="author" id="s1" value="<?php echo $comment_author; ?>" size="30" tabindex="1" /> </p> <p><?php _e('Email ');?><?php if ($req) _e('(required)'); ?><br /> <input type="text" name="email" id="s2" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" /> </p> <p><?php _e('Website');?><br /> <input type="text" name="url" id="s3" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" /> </p> <?php endif; ?> <!--<p>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></p>--> <p><?php _e('Speak your mind');?><br /> <textarea name="comment" id="s4" cols="90" rows="10" tabindex="4"></textarea> </p> <p> <input name="submit" type="submit" id="hbutt" tabindex="5" value="Submit Comment" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> </form> </div> <!-- End Comment Form --> HTML: I've commented to denote the portion of the code for the Comment Form portion of the code that is important for the commenting form. I would need to try to tweak it to see how to properly remove the commenting, but that should help you get close to finding the proper result for your particular theme.
To disallow comments on all new posts, click on options then discussion and uncheck the "allow people to post comments on the article" button:
i have problem with ddsitemap genration sitemap. basically dont know how to make "sitemap" xml.. i mean i had tried many times but no luck
Have you tried using the Google Sitemap Generator Plug-in? It works REALLY well and automatically pings Google. I never had any problems with it.
anita, can you help me lil bit ? where that two files "sitemap.xml" and "sitemap.xml.gz" kept in which folder? . their is quite bit old, as this one 3.02 plugins is new. and thats folder there are many sitemap files.