WordPress.org

Ready to get started?Download WordPress

Forums

query: user with the role "author" (3 posts)

  1. to_ul
    Member
    Posted 4 years ago #

    hi try to learn the wp-query thing,
    because i want to display a list from my user that are authors...
    i'm stucking here:

    <?php
    $users = $wpdb->get_results("SELECT * from $wpdb->usermeta WHERE  meta_key = 'wp_capabilities' AND meta_value = '..?--"); foreach($users as $user) : // start users' profile "loop"
    echo ...  . '<br />';
    endforeach; // end of the users' profile 'loop'
    ?>
  2. sailpilot
    Member
    Posted 4 years ago #

  3. to_ul
    Member
    Posted 4 years ago #

    thanx...but this one wont help me

Topic Closed

This topic has been closed to new replies.

About this Topic