I have a custom template page where posts are shown from authors 1,2 and 3.
<?php $the_query = new WP_Query( 'posts_per_page=-5&author=1,2,3' ); ?>
How can I use get current user in this so that the posts are only visible to an author with one of those ID's (1,2 or 3) and are logged in?
In other words: Author 4 will not see any posts. Authors 1,2,3 will see each others posts if they are currently logged in.
Thanks very much in advance-