table-of-contents-plus icon indicating copy to clipboard operation
table-of-contents-plus copied to clipboard

The following two features were added to the [sitemap_pages]-shortcode:

Open ctornau opened this issue 7 years ago • 1 comments

  • only_subpages (default is false) If true, only subpages of the current page appear in the list
  • sort_column (default is menu_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.

ctornau avatar Oct 27 '17 20:10 ctornau

Pull-request now got a bugfix if only_subpages is missing in the tag.

ctornau avatar Nov 10 '17 14:11 ctornau