WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Sort Page List by Last Name

Sorts wp_list_pages-generated page lists by last name or, more generally, the last word of any page's title.

Links

Developer Notes

PLEASE NOTE: Line 14 extracts each separate line of HTML from the original wp_list_pages output and puts it into an array called $lines. The \n 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 n. As such, if developers edit the plugin using the WordPress code editor, they should add an extra backslash (\) in front of the n before saving the file (e.g, $lines = explode("\\n", $val);). The line will revert to $lines = explode("\n", $val); on save.

Requires: 3.0 or higher
Compatible up to: 3.9.2
Last Updated: 2014-8-14
Downloads: 1,094

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,2,2
100,2,2
100,2,2
100,2,2
100,2,2