[wordpress] How To Create Page With Authors A-z List?

Discussion in 'Programming' started by tdtemo, Jan 27, 2013.

  1. #1
    hello,
    how to create page with authors a-z list? for example if costumer will click "a" he must see all authors name started with "a"
     
    tdtemo, Jan 27, 2013 IP
  2. ronaldsg

    ronaldsg Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #2
    This should help you get started with listing authors whose name starts with some letter:
    
    <?php
    $letter = 'a';
    $users = get_users(array('role' => 'author', 'search' => $letter.'*', 'search_columns' => array('user_login', 'user_nicename') ) );
    foreach ($users as $user) {
             var_dump($user);
    }
    ?>
    PHP:
     
    Last edited: Jan 27, 2013
    ronaldsg, Jan 27, 2013 IP
  3. tdtemo

    tdtemo Greenhorn

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    thansk,
    how to use this code? I don't know programing :(
     
    tdtemo, Jan 27, 2013 IP
  4. ronaldsg

    ronaldsg Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #4
    Then you should start learning WordPress or search for plugins, that will do it for you.
     
    ronaldsg, Jan 27, 2013 IP