Is there any function that will show some content only if there are more than x comments ?
For example show some banner only if more than 10 comments are in post ? Thanks 🙂
Leave a Reply
You must be logged in to post a comment.
Is there any function that will show some content only if there are more than x comments ?
For example show some banner only if more than 10 comments are in post ? Thanks 🙂
You must be logged in to post a comment.
wp_count_comments()
returns the number of comments either for the whole blog or just for the current post.Example: