mbr_page_list
Usage
This shortcode returns an HTML link list of pages.
Parameters
Parameters | Description |
---|---|
authors | Author IDs to include in the list specified in a comma separated string. Default: none. (All authors) Required: no. |
post_type | The post type used to generate the list. Default: page Required: no. |
post_status | Post statuses to include in the list specified in a comma separated string. Permitted Values: draft, pending, private, publish Default: publish Required: no. |
child_of | Display only the sub-pages of a single page by specifying a page ID. Default: 0 (All pages) Required: no. |
depth | Number of levels in the hierarchy of pages to include in the generated list. Permitted Values: -1 (any depth), 0 (all pages), 1 (top-level pages only), and n (pages to the given n depth). Default: 0 Required: no. |
exclude | Page IDs to exclude in a comma separated string. Default: none. Required: no. |
include | Page IDs to include in a comma separated string. Default: none. Required: no. |
link_before | Text or HTML to precede the page link label. Default: none. Required: no. |
link_after | Text or HTML to follow the page link label Default: none. Required: no. |
show_date | Whether to display the page publish or modified date for each page. An empty value hides the date. Permitted Values: modified, or any other value. Default: none. Required: no. |
date_format | PHP date format to use for the listed pages. The format must follow the syntax rules set for PHP as detailed within date formats. Default: As set in WordPress, Settings, General, Date Format. Required: no. |
sort_column | Column names used too sort the list specified in a comma separated string. Permitted Values: post_author, post_date, post_title, post_name, post_modified, post_modified_gmt, menu_order, post_parent, ID, rand, or comment_count. Default: menu_order,post_title Required: no. |
title_li | List title/heading. If set to empty no heading will be shown, and the list will not be wrapped with unordered list <ul> tags.Default: none. Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_page_list].
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
Displays a HTML link list of all published pages sorted by page title:
[mbr_page_list depth='0']
Displays a HTML link list of all published pages sorted by page title also showing the page modified date in the format as specified in WordPress, Settings, General, Date Format:
[mbr_page_list depth='0' show_date='modified' title_li='Pages']
API
Note
There is no ActiveMember360 API function equivalent for this shortcode. Please use the WordPress function wp_list_pages.