Get posts for each user
According to the WP_Query::parse_args docs (which is what parses the $args you’re passing to get_posts()), the $author parameter needs to be an int or a string (a comma-separated list of IDs). But you’re also going to need this set up in groups, per student, so here’s what I’d recommend: use an array to store each … Read more