I have tried several things but I'm not a coder and can't seem to get this to work.
This applies to already logged in users:
I need a post author to see his own and all other comments to his post.
I need commenters to this post to see only their own comments (not those of the other commenters) and those of the post author.
The code I've got so far is this:
<?php global $current_user; get_currentuserinfo(); $author=get_comment_author(); if($author == $current_user->ID): ?> 'comments you need to show' <?php endif; ?>
Does anybody know how to make this work?
I am aware of the fact this would not yet show the post author comments as well if the current user isn't the post author, but I didn't even get that far yet.
I'm using a very similar code in archive.php, which only shows the posts of the currently logged in user. This code works and looks like this:
<?php global $current_user; get_currentuserinfo(); if($post->post_author == $current_user->ID): ?> 'show only the posts of the logged in user' <?php endif; ?>
Now in the most ideal situation I also need the commenters to upload files (PDF's), but I would be very happy if the first 'filtered comment part' works :)