{"id":15933,"date":"2011-12-04T22:40:11","date_gmt":"2011-12-04T22:40:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sort-page-list-by-last-name\/"},"modified":"2020-04-03T19:22:16","modified_gmt":"2020-04-03T19:22:16","slug":"sort-page-list-by-last-name","status":"publish","type":"plugin","link":"https:\/\/et.wordpress.org\/plugins\/sort-page-list-by-last-name\/","author":8040441,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"5.4.19","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Sort Page Lists by Last Name","header_author":"Studio Hyperset, Inc.","header_description":"","assets_banners_color":"c8cfdb","last_updated":"2020-04-03 19:22:16","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=C2KQADH2TGTS4","header_plugin_uri":"http:\/\/studiohyperset.com\/wordpress-plugin-sort-wp_list_pages-generated-page-lists-by-last-name\/4451","header_author_uri":"http:\/\/studiohyperset.com\/posts","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3021,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<ul>\n<li>12\/3\/11 - Initial release<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1721679","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1032694","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1466486","resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1721680","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1759,245,170,1460,6689],"plugin_category":[],"plugin_contributors":[87720,89268,82148],"plugin_business_model":[],"class_list":["post-15933","plugin","type-plugin","status-publish","hentry","plugin_tags-function","plugin_tags-list","plugin_tags-page","plugin_tags-title","plugin_tags-wp_list_pages","plugin_contributors-oqm4","plugin_contributors-ryanajarrett","plugin_contributors-studiohyperset","plugin_committers-studiohyperset"],"banners":{"banner":"https:\/\/ps.w.org\/sort-page-list-by-last-name\/assets\/banner-772x250.png?rev=1721680","banner_2x":"https:\/\/ps.w.org\/sort-page-list-by-last-name\/assets\/banner-1544x500.png?rev=1466486","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/sort-page-list-by-last-name\/assets\/icon-128x128.png?rev=1721679","icon_2x":"https:\/\/ps.w.org\/sort-page-list-by-last-name\/assets\/icon-256x256.png?rev=1032694","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Aimed at archivists and other WordPress developers who use the names of individuals as page titles, this plugin sorts <code>wp_list_pages<\/code>-generated page lists by last name. More generally, the plugin can also be used to sort <code>wp_list_pages<\/code>-generated page lists by the last word of any page's title.<\/p>\n\n<!--section=installation-->\n<p>After installing and activating, developers can order any <code>wp_list_pages<\/code>-generated page list by surname -- or, more generally, last word -- using the <code>sortbylastname=1<\/code> parameter, e.g., <code>&lt;?php wp_list_pages('title_li=&amp;sortbylastname=1'); ?&gt;<\/code>. Use a \"0\" to (temporarily) disable the plugin.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Links<\/dt>\n<dd><ul>\n<li><p>For feedback and help, visit: http:\/\/getsatisfaction.com\/studio_hyperset\/products\/studio_hyperset_wordpress_plugins<\/p><\/li>\n<li><p>To learn about other Studio Hyperset WordPress plugins, visit http:\/\/studiohyperset.com\/#solutions<\/p><\/li>\n<li><p>To help develop the Sort Page List by Last Name plugin, visit https:\/\/github.com\/studiohyperset\/sort-page-list-by-last-name<\/p><\/li>\n<\/ul><\/dd>\n<dt>Developer Notes<\/dt>\n<dd><p>PLEASE NOTE: Line 14 extracts each separate line of HTML from the original <code>wp_list_pages<\/code> output and puts it into an array called <code>$lines.<\/code> The <code>\\n<\/code> parameter 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 an <code>n<\/code>. As such, if developers edit the plugin using the WordPress code editor, they should add an extra backslash (<code>\\<\/code>) in front of the <code>n<\/code> before saving the file (e.g, <code>$lines = explode(\"\\\\n\", $val);<\/code>). The line will revert to <code>$lines = explode(\"\\n\", $val);<\/code> on save.<\/p>\n\n<p>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<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>12\/3\/11 - Initial release<\/li>\n<\/ul>","raw_excerpt":"Sorts wp_list_pages-generated page lists by last name or, more generally, the last word of any page&#039;s title.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15933"}],"author":[{"embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/studiohyperset"}],"wp:attachment":[{"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15933"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15933"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15933"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15933"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15933"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/et.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}