table-of-contents-plus
table-of-contents-plus copied to clipboard
The following two features were added to the [sitemap_pages]-shortcode:
-
only_subpages
(default isfalse
) If true, only subpages of the current page appear in the list -
sort_column
(default ismenu_order
) Defines how the entries are sorted.wp_list_pages()
got a list of possible arguments:
Comma-separated list of column names to sort the pages by. Accepts 'post_author', 'post_date', 'post_title', 'post_name', 'post_modified', 'post_modified_gmt', 'menu_order', 'post_parent', 'ID', 'rand', or 'comment_count'.
I think menu_order
is the best of these. Before the posts where just sorted like they were placed in the database. Now the WordPress menuorder is taken into account.
Pull-request now got a bugfix if only_subpages is missing in the tag.