Quantcast
Viewing all articles
Browse latest Browse all 20145

how to get a username from a user id (stored in postmeta) in views

This may be somewhat of a tricky question and hopefully it's possible with Toolset. I need a little direction on the approach.

I have a custom post type that stores a specified user ID in a custom post meta field (in addition to the post_author of the person who created the post).

In a view, I have a table displaying the current user's posts for this custom post type using a simple loop.

What I want to do is to display the *username* of the user whose ID was saved in the CUSTOM POST META field (not the post_author!).

What's the correct way to do this?

Jonathan


Viewing all articles
Browse latest Browse all 20145

Trending Articles