help with displaying user description on sidebar
-
Hi, I have tried all the methods that I could find online and still couldn’t find a solution.
This is my code:
<?php $order = 'ID'; $users = $wpdb->get_results("SELECT * FROM $wpdb->users ORDER BY $order"); // query users foreach($users as $user) : // start users' profile "loop" ?> <?php echo $user->user_description; ?> <span id="author"><?php echo "<a href='/author/" . $user->user_login . "/" . "'>$user->display_name</a>"; ?></span><br /> <a href="<?php echo $user->user_url; ?>" target="_blank"><?php echo userphoto_thumbnail($user); ?></a><br /> <?php echo $user->description; ?> <br /><br /> <?php endforeach; // end of authors' profile 'loop' ?>
I want to display the user description after the user photo and other information on the sidebar. It’s just not showing up. I don’t know what I’m doing wrong. Could someone please help? I’m sure it’s a minor issue.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘help with displaying user description on sidebar’ is closed to new replies.