설명
Aimed at archivists and other WordPress developers who use the names of individuals as page titles, this plugin sorts wp_list_pages-generated page lists by last name. More generally, the plugin can also be used to sort wp_list_pages-generated page lists by the last word of any page’s title.
설치
After installing and activating, developers can order any wp_list_pages-generated page list by surname — or, more generally, last word — using the sortbylastname=1 parameter, e.g., <?php wp_list_pages('title_li=&sortbylastname=1'); ?>. Use a “0” to (temporarily) disable the plugin.
FAQ
- 링크
-
-
For feedback and help, visit: http://getsatisfaction.com/studio_hyperset/products/studio_hyperset_wordpress_plugins
-
To learn about other Studio Hyperset WordPress plugins, visit http://studiohyperset.com/#solutions
-
To help develop the Sort Page List by Last Name plugin, visit https://github.com/studiohyperset/sort-page-list-by-last-name
-
- Developer Notes
-
PLEASE NOTE: Line 14 extracts each separate line of HTML from the original
wp_list_pagesoutput and puts it into an array called$lines.The\nparameter tells the explode command that each line ends with a carriage return. However, as of WordPress 3.2.1, the explode command assumes each line ends when it finds ann. As such, if developers edit the plugin using the WordPress code editor, they should add an extra backslash (\) in front of thenbefore saving the file (e.g,$lines = explode("\\n", $val);). The line will revert to$lines = explode("\n", $val);on save.Interested in helping develop the Sort Page List by Last Name plugin? Visit the GitHub repository: https://github.com/studiohyperset/sort-page-list-by-last-name
후기
이 플러그인에 대한 평가가 없습니다.
기여자 & 개발자
“Sort Page List by Last Name”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.
기여자자국어로 “Sort Page List by Last Name”(을)를 번역하세요.
개발에 관심이 있으십니까?
변경이력
1.0
- 12/3/11 – Initial release
