Stop future commenting on specific post

When you are editing the post or page. You can disable comments from the “Discussion” box. By default this box is hidden. Show the Discussion meta box If you don’t see a box labeled Discussion: Open the Screen Options by clicking the tab near the upper right-hand corner of the screen with the name Screen … Read more

Is safe to use native WordPress comments system? [closed]

WordPress default settings are to allow anyone to comment as long as they leave a name and email. Emails aren’t verified, so you could use someone else’s email and gravatar and the comment would be published. Best practice is to verify the email address of the user making the comment. In WordPress core functionality, this … Read more

Why nobody is answering my question? [closed]

The question “What is procedure to let set path in wordpress?” is about a 3rd-party plugin. Questions regarding 3rd-party plugins are off-topic here, as outlined in the “What topics can I ask about here?” section of the help centre: Note that we do not handle questions: … questions concerning third party plugins and themes. As … Read more

Recent posts with comment count in “Sidebar” template [closed]

‘;’ is missing in this line echo “<dt>$recent_date &nbsp; / &nbsp; <span class=”comment”><a href=”$recent_link#disqus_thread”>$recent_count</a></span></dt><dd><a href=”$recent_link” title=”$recent_title”>$recent_title</a></dd>” For this reason code is throwing the fatal error. Please replace that line with this code echo “<dt>$recent_date &nbsp; / &nbsp; <span class=”comment”><a href=”$recent_link#disqus_thread”>$recent_count</a></span></dt><dd><a href=”$recent_link” title=”$recent_title”>$recent_title</a></dd>”;

Why default comment fields don’t show up?

Without code and based upon what you are doing, my advise would be to set WP_DEBUG to true in your wp-config.php. If there are any errors causing the fields not to display, they are likely to show up. Especially since you are coding a custom theme, there is a good chance of errors somewhere you … Read more

Number of unpublished comments for each post

I wonder if you’re looking for the wp_count_comments() function. To retreive comment count statistics for the whole site, you can use: $comments_count = wp_count_comments(); or for a given post ID: $comments_count = wp_count_comments( 123 ); It will return an object with the following attributes: $comments_count->moderated $comments_count->approved $comments_count->spam $comments_count->trash $comments_count->total_comments Check the Codex for more information … Read more