There will be many people commenting on a post. So, when a commentator visits the post, he should be able to see 'only' his own comment(s).Post author can see all comments only on his own post.
How can I do this in WordPress?
|
There will be many people commenting on a post. So, when a commentator visits the post, he should be able to see 'only' his own comment(s).Post author can see all comments only on his own post. How can I do this in WordPress?
| |||
|
feedback
|
|
By using the 'pre_get_comments' action, found in
Note that the above won't display comments left by non-registered users. Update: Nevermind, this won't work because get_comments() isn't used consistently in comments_template(): http://core.trac.wordpress.org/browser/tags/3.1.3/wp-includes/comment-template.php#L882 | |||||||||||
feedback
|
|
use the comments_array filter, and remove the unnecessary comments. Some loose code to get you started
| ||||
feedback
|
|
@Satish... Thanks a lot man! I don't know if you're solution worked for the question asker, but it worked for me! I has spent 2 days trying things with 'comments_clauses' and 'pre_get_comments', and had given up! | |||
|
feedback
|
|
Useful Comments Plugin..If you are not well known about codings means Plugin is the Easiest Way to Do that.:) I hope you got answer...:) | |||||||
feedback
|