0

How can i assign multiple authors to a post and only show posts by author.

Im currently using the following to get post by the current logged in user. But it only allows me to have one author.

$loop = new WP_Query( array( 'author__in' => $authors, 'post_type' => 'Contacts', 'numberposts' => 30, 'orderby' => 'date') ); 
while ( $loop->have_posts() ) : $loop->the_post();
// -----
endwhile;

HI need to be able to assign any amount of authors and allow each user to see all post where they are the author.

-1

Try this plugin it's the easy way of doing what you want co-authors-plus

  • link only answers are not real answers. In this case the link is not even to the plugin itself – Mark Kaplun Apr 12 '17 at 16:41
  • Thank you @MarkKaplun I didn't know, I'm still learning as I go along try to help – frenchy black Apr 12 '17 at 16:47
  • If you are going to recommend a plugin at least link directly to it ;) than you can explain or add additional resources on how to use it, but in general just having a link is not a good thing. You can add such recomendations as comments to the questions – Mark Kaplun Apr 12 '17 at 17:00
  • Ok I understand I will correct it right now – frenchy black Apr 12 '17 at 17:02
  • @MarkKaplun I just updated the link – frenchy black Apr 12 '17 at 17:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.