If I have a user's ID, what's the best way for me to get the title of that user's most recent post?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
You just set the 'author' parameter in a
(Note the 'orderby' and 'order' here are redundant because they are set to their default values, but you get the idea) |
|||
|
|
|
The best way would be a custom SQL query, but you can simply use the native functions like get_posts and that would be just fine as well;
|
|||
|
|
