I need to retrieve the name of all the categories that a given user has published posts for. If I can also get a URL for the archive of that cat for that user only, this would make me very happy.
How do I get a list of all categories that a given user has written blog posts for (and possibly the URL for that user's cat specific archive)?
What I've got so far:
From what I have learned, I have guessed:
$args=array(); $args['taxonomy']='categories'; $args['hide_empty']=TRUE; $args['???']=$user_id; $list = get_terms( $args );
$cats = get_categories( 'hide_empty=0' . '???' );
One, both, or neither of these might be what I need. Can anyone help me get this across the finish line?