admin管理员组文章数量:1434929
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:
- Julie Brown
- Jane Cook
- John Doe
- Jack Eagle
- 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
本文标签: authorCreate Next and Previous Link to User orderby Last Name
版权声明:本文标题:author - Create Next and Previous Link to User orderby Last Name 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745630225a2667225.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论