Check in your theme’s comments.php
for the wp_list_comments()
function. In the Twenty Eleven theme, for example, uses a custom callback function which is in the functions.php
file and outputs the template for comments.
Within this comments template, you can then use wp_get_comment_status()
and only display a comment if it was approved. Example from the Codex:
$status = wp_get_comment_status( $comment_id );
if ( $status == "approved" ) {
// the rest of the comment loop
}
Related Posts:
- Allow anonymous users to post to my site for moderation
- how to find user ids of all commenters in a post
- count the total number of comments the user has received for his published posts
- How to allow logged in users to post anonymously
- Hide comments and posts posted by other user
- Admin moderates ALL comments (including post author)
- Undefined Function Fatal Error with Shortcode [closed]
- How to make comments work for a post loaded per Ajax?
- How to Display a List of Users Who Have Made at Least 1 Post?
- Find out who deleted a page or post?
- Allow variable amount of comments before pagination
- How to display comments and comment form on custom post type?
- Comments are assigned to wrong or related post
- How can I allow editors to leave comments on posts that have not yet been published?
- Update post date on every new comment?
- Allowing logged in users to comment without moderation across a multisite installation
- Only display posts with comments
- Comments enabled, but disabled at the same time
- Comments not showing in custom post type – WordPress
- Enable commenting on front-end preview page for pending posts
- Query All users that has post
- Limit number of posts a user can make per minute?
- How do I allow users to follow a post and then allow admins to email all users who have followed that post?
- Get user’s most published categories
- Disable Post/Page comment emails for creators
- Why is WordPress redirecting users to random posts after commenting?
- How to get most recent commented post above new submitted post in WordPress?
- Hold comments for moderation only if user is not logged in
- How to list users and their post amount?
- Diplay comment date on WP_Post_Comments_List_Table
- Is there any way to allow users to access content before it’s published?
- Create post for every user?
- Restrict users post for himself
- Allow public to post on blog
- current post with current author
- Enable Comments Box On Custom Post Type
- Turn On Comments On Custom Post Types in Directory Theme
- Emojis replaced by ‘?’ automatically
- Users problem (multi-author plus multisite)
- A friend wants to make a comment on one of my articles, she has to be logged to wordpress?
- Is it possible to paste a link without tags and make it directly a link in a post?
- Showing author page if user has no post
- Customizing Comments on Posts
- WordPress Comment posting problem
- What do comments with […] mean?
- How do I manage my users post before publish?
- How do I retrieve a users’ last 5 posts?
- Gather posts into a cart/lightbox and share with another user
- How to get posts and comments amount per hour, per year and per month?
- Show comment number per author per day
- Howto show comment count by post in post?
- How do you change the comment count in the back end posts list, to reflect unapproved comments, rather than all comments?
- Let both the admin and post author update comment meta
- Automatically create a default set of posts for each new registered user
- Summary of Posts by an User
- How to style archive post titles… but only those posts who have comments?
- Check if current user has a post and that post has any term/s from a specific custom taxonomy outside the loop
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- Show number of posts by logged in user
- How does WP decide how to display a page
- Display on page every post in blog WITH comments
- Showing recent post of category in page
- Cannot select certain authors for posts after import
- How to get post id of last approved comment?
- How to implement a WordPress comments function?
- How to limit post (Exception pages) for current user in each role in front end?
- Count the total views of all user posts published
- Shortcode for Comments and Comment Boxes in Post Loop
- Merge get_comments & get_posts into a single query
- How can get the last post date of the user?
- Remove the URL author of post on all comments
- WordPress weird behaviour on comments
- Comments are in database, don’t show up in WordPress backend or frontend
- No comments allowed
- Is there a way to save different data when USER interacts with the same POST?
- How to display particular categorie’s post which associated to specific user?
- WordPress Delete Users from backend doesn’t work
- Compare date of user’s last posts
- Add new post only in assigned category
- WordPress each user has each content for a page,how to do that?
- Posting a comment redirects admin/users to blank page
- How to enable comments meta box for other author posts?
- Comments as part of a post
- 3rd Party Login in wordpress
- Allow users to create their own page/s
- My posts section for logged in user
- Apply comment to different post (not the current post) [duplicate]
- External link not showing on post but showing on comment
- Show Custom Post From Logged In Author
- wp_query select if have comments
- Display the first post’s comments of category in comments.php template
- How to handle dates, trying to calculate time since a post
- How to display a certain template element only for posts published within certain time range?
- each user having category with their name and can add sub categories post in that category
- Show List of Posts With Comments Open
- The post order is different for logged-in and non-logged-in users? [closed]
- How does WordPress add the comments and comment form to posts
- User submitted post
- How to update wp_posts with just the returned comment count from wp_comments (SQL GROUP BY)
- Simple shortcode to check if a user has commented on a certain post