user meta and a user page loop
-
My lack of <?PHP> skills are showing. I am trying to list my authors with user_levels of 2 (author) and 7 (editor) on a page. I have crawled the CODEX and learned that user_login (in wp_users) and user_level (in wp_usermeta) are in different tables.
I know this much:
do a QUERY of the wordpress db and JOIN the wp_users and wp_usermeta tables WHERE user_level is equal to 2 and 7.But that syntax eludes me
this code works in a static page, but not in a loop.
User Name: <?php echo get_the_author_meta('user_login', 3); ?> User Level: <?php echo get_the_author_meta('user_level', 3); ?>
any clues?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘user meta and a user page loop’ is closed to new replies.