Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,912
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
I can guess why author may != the meta value, but it would be a lot easier if you stored the user id in that meta value field.
Anyhow, you could use get_user.
$person = get_user_by('id', bp_displayed_user_id());
then
...
'meta_value' => $person->user_login
...