author - Create Next and Previous Link to User orderby Last Name

Within author.php, I have a left and right arrow that is supposed to move to the NEXT or PREVIOUS user orderby based on

Within author.php, I have a left and right arrow that is supposed to move to the NEXT or PREVIOUS user orderby based on last_name.

So if I had users with these names:

  1. Julie Brown
  2. Jane Cook
  3. John Doe
  4. Jack Eagle
  5. Jason Fox

So if I'm looking at John Doe's author.php, the next button would automatically link to Jack Eagle for example. And the previous button would automatically link to Jane Cook. THis would be alphabetical based on lastname.

Does anyone know how I can code the left and right arrows to do that.

I'm trying to display a list of authors by their last name. I can get the list to display but as yet I don't seem to be able to order the list by last name. Any help would be greatly appreciated. Josh

I found a thread that orders users by last_name, but I don't know how to use it within author.php to create a Next / Previous button to correctly go to the next user ordered by last_name.

Thread I found has part of the answer: Ordering users of a specific role by last name

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745630226a4637060.html

相关推荐

  • author - Create Next and Previous Link to User orderby Last Name

    Within author.php, I have a left and right arrow that is supposed to move to the NEXT or PREVIOUS user orderby based on

    4小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信