[Resolved] Use wp_get_recent_posts or get_posts for certain author(s) only
I’m building a custom template which requires access to recent posts, but only from one particular author (or a few specific authors). I saw that the
get_postsfunctions allow for filtering output by category, but there’s no mention of being able to filter it by author(s).
It does say on the
wp_get_recent_postsfunction that it “uses WP_Query Parameters”, which would mean it supports the
"author="parameter, but I’m not sure how to supply those to the function.
I Googled a bit too, but no one seems to have asked this particular question. I’ve probably missed it…
- The topic ‘[Resolved] Use wp_get_recent_posts or get_posts for certain author(s) only’ is closed to new replies.