You have some filters that can be used on your themes or plugins to customize PageList. Also you can create your plugin to hold this filters and save your changes when updating to a newer version. To know how to write a plugin to hold this filters, read this post.
See also the Alkivia Framework hooks
Filters the column names for ordering the list pages. By default it is 'menu_order, post_title'. Have to return a valid column names using commas as separator.
/** * Changes the list of pages to be ordered by post_author and post_title. */ function my_pagelist_pageby ( $columns ) { return 'post_author, post_title'; } add_filter('ak_pagelist_sort_column', 'my_pagelist_pageby');
Filters the field name we want to order the posts by. You have to take into consideration that these are the field names passed to the WordPress query, and it changes also which posts are shown. If you're listing 5 posts, you will get the first five posts using this order.
Valid keys to return are: author, date, category, title, modified, ID, rand (This last to retrieve random posts).
/** * Changes the list of pages to be ordered by modified date. * (Will show the first 5 posts using this orderby) */ function my_pagelist_post_orderby( $orderby ) { return 'modified'; } add_filter('ak_pagelist_post_orderby', 'my_pagelist_orderby');
Changes the order for the list to ascending or descending. Valid keys to return are ASC or DESC.
/** * Set the post list to Ascending order, and show the first posts in this order. */ function my_pagelist_post_order( $orderby ) { return 'ASC'; } add_filter('ak_pagelist_post_order', 'my_pagelist_order');