Skip to main content

mbr_page_list

Usage

This shortcode returns an HTML link list of pages.

Parameters

ParametersDescription
authorsAuthor IDs to include in the list specified in a comma separated string.
Default: none. (All authors)
Required: no.
post_typeThe post type used to generate the list.
Default: page
Required: no.
post_statusPost statuses to include in the list specified in a comma separated string.
Permitted Values: draft, pending, private, publish
Default: publish
Required: no.
child_ofDisplay only the sub-pages of a single page by specifying a page ID.
Default: 0 (All pages)
Required: no.
depthNumber 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.
excludePage IDs to exclude in a comma separated string.
Default: none.
Required: no.
includePage IDs to include in a comma separated string.
Default: none.
Required: no.
link_beforeText or HTML to precede the page link label.
Default: none.
Required: no.
link_afterText or HTML to follow the page link label
Default: none.
Required: no.
show_dateWhether 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_formatPHP 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_columnColumn 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_liList 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

Displays a HTML link list of all published pages sorted by page title:

[mbr_page_list depth='0']

API

Note

There is no ActiveMember360 API function equivalent for this shortcode. Please use the WordPress function wp_list_pages.