Thread Starter
jmp909
(@jmp909)
i’m guessing some adaptation of this code would do it:
admin/edit.php
$comments = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved != 'spam' ORDER BY comment_date", $id) );
eg (pseudocode) where (author_id == logged_in_user_id) OR (admin==true)
Thread Starter
jmp909
(@jmp909)
thanks,
although what i mean is that if i am logged in as a contributer (rather than an administrator), i only want to be able to see my own posts. This is essentially what appears in the “private” list.. but would need to be the same for all options ie “All Posts”, “Pending Review”, “Published” etc would only list my own posts.
An administrator though would see what is there now.. ie all users.
Maybe that’s what you meant… I wasn’t quite sure from your ticket
regards
J