[resolved] help with displaying user description on sidebar (2 posts)

  1. designisjuicy
    Posted 5 years ago #

    Hi, I have tried all the methods that I could find online and still couldn't find a solution.

    This is my code:

        $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 />
        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.

  2. designisjuicy
    Posted 5 years ago #

    Never mind, resolved

Topic Closed

This topic has been closed to new replies.

About this Topic