Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ctornau
Copy link

@ctornau ctornau commented Oct 27, 2017

  • 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.

Christoph Tornau added 2 commits October 27, 2017 22:04
 - 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
Copy link
Author

ctornau commented Nov 10, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant