[Resolved] Using bp displayed user to query posts
-
I have a site where some posts are labelled by applying a user as a custom field. In WordPress, I can create a page which displays all posts linked to the currently logged in user, by testing for posts that equal their username.
My answered query was at http://wordpress.org/support/topic/query-if-custom-field-value-equals-a-current-user-value?replies=3 and I’ve also found a method at http://www.advancedcustomfields.com/resources/how-to-query-posts-filtered-by-custom-field-values/ (Example 2)
Now I’m looking to display within the user’s Buddypress Profile. I thought the same approach may work, asking for $bp->displayed_user->user_login rather than current user but it doesn’t seem to work – just says no posts found.
If anyone can shed some light on this, I’d be very very grateful
Thank you
- The topic ‘[Resolved] Using bp displayed user to query posts’ is closed to new replies.