We'll create fresh WordPress site with PageMagic – Page Lists installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Create visual hierarchies of site pages. Options to list all pages, subpages, current page siblings. Also able to show page featured image and custom excerpts.
[pagemagic_listall child_of="4" depth="2" exclude="6,7,8"]
[pagemagic_image_excerpt child_of="4" exclude="6,7,8" image_width="50" image_height="50"]
[pagemagic_listall child_of="current"]
[pagemagic_listall child_of="parent"]
[pagemagic_listall depth="3"]
; by default depth is unlimited (depth=”0″); Displays pages at any depth and arranges them in a flat list: [pagemagic_listall depth="-1"]
[pagemagic_listall child_of="4"]
[pagemagic_listall exclude="6,7,8"]
; You may exclude current page: [pagemagic_listall exclude="current"]
[pagemagic_listall exclude_tree="7,10"]
[pagemagic_listall include="6,7,8"]
[pagemagic_listall title_li="<h2>List of pages</h2>"]
; by default there is no title (title_li=””)[pagemagic_listall authors="2,5"]
; by default all authors are included (authors=””)[pagemagic_listall number="10"]
; by default the number is unlimited (number=””)[pagemagic_listall offset="5"]
; by default there is no offset (offset=””)[pagemagic_listall post_type="page"]
; by default: (post_type=”page”); possible values: page, revision, Hierarchical Custom Post Types (‘post’ is not a Hierarchical Post Type)[pagemagic_listall post_status="private"]
; by default: (post_status=”publish”); possible values: publish, private, draft[pagemagic_listall meta_key="metakey" meta_value="metaval"]
[pagemagic_listall show_date="created"]
; possible values: created, modified, updated[pagemagic_listall date_format="l, F j, Y"]
; by default use the date format configured in your WordPress options[pagemagic_listall sort_column="menu_order"]
; by default: (sort_column=”menu_order, post_title”); possible values: post_title, menu_order, post_date (sort by creation time), post_modified, ID, post_author, post_name (sort by page slug)[pagemagic_listall sort_order="desc"]
; by default: (sort_order=”asc”); possible values: asc, desc[pagemagic_listall link_before="<span>"]
; you may specify html tags only in the HTML
tab in your Rich-text editor[pagemagic_listall link_after="</span>"]
; you may specify html tags only in the HTML
tab in your Rich-text editor[pagemagic_listall class="listclass"]
; by default the class is empty (class=””)[pagemagic_listall class="pagemagic-cols-2"]
; available classes: pagemagic-cols-2, pagemagic-cols-3, pagemagic-cols-4, pagemagic-cols-5; works in all modern browsers and IE10+; columns are responsive and become 1 column at less than 768px[More info] about parameters (https://developer.wordpress.org/reference/functions/get_pages/#parameters) for [pagemagic_listall].
[pagemagic_image_excerpt show_image="0"]
; “show_image” have higher priority than “show_first_image”; by default: show_image=”1″[pagemagic_image_excerpt show_first_image="1"]
; by default: show_first_image=”0″[pagemagic_image_excerpt show_title="0"]
; by default: show_title=”1″[pagemagic_image_excerpt show_content="0"]
; by default: show_content=”1″[pagemagic_image_excerpt more_tag="0"]
; this parameter does not add “more-link” to the end of content, it just cut content before more-tag; “more_tag” parameter have higher priority than “limit_content”; by default the more_tag is enabled (more_tag=”1″) and showing only content before more tag[pagemagic_image_excerpt limit_content="100"]
; by default: limit_content=”250″[pagemagic_image_excerpt image_width="80"]
; by default: image_width=”50″[pagemagic_image_excerpt image_height="80"]
; by default: image_height=”50″[pagemagic_image_excerpt child_of="4"]
; by default it shows subpages to the current page[pagemagic_image_excerpt parent="4"]
; by default parent=”-1″ and depth is unlimited[pagemagic_image_excerpt sort_column="menu_order"]
; by default: (sort_column=”menu_order, post_title”); possible values: post_title, menu_order, post_date (sort by creation time), post_modified, ID, post_author, post_name (sort by page slug)[pagemagic_image_excerpt sort_order="desc"]
; by default: (sort_order=”asc”); possible values: asc, desc;* hierarchical – display subpages below their parent page [pagemagic_image_excerpt hierarchical="0"]
; by default: hierarchical=”1″[pagemagic_image_excerpt hierarchical="0"]
; by default: hierarchical=”1″[pagemagic_image_excerpt exclude="6,7,8"]
[pagemagic_image_excerpt exclude_tree="7,10"]
[pagemagic_image_excerpt include="6,7,8"]
[pagemagic_image_excerpt meta_key="metakey" meta_value="metaval"]
[pagemagic_image_excerpt authors="6,7,8"]
[pagemagic_image_excerpt number="10"]
; by default the number is unlimited (number=””)[pagemagic_image_excerpt offset="5"]
; by default there is no offset (offset=””)[pagemagic_image_excerpt post_type="page"]
; by default: (post_type=”page”); possible values: page, revision, Hierarchical Custom Post Types (‘post’ is not a Hierarchical Post Type)[pagemagic_image_excerpt post_status="private"]
; by default: (post_status=”publish”); possible values: publish, private, draft[pagemagic_image_excerpt class="listclass"]
; by default the class is empty (class=””)[pagemagic_image_excerpt strip_tags="0"]
; by default the tags are stripped (strip_tags=”1″)[pagemagic_image_excerpt strip_shortcodes="0"]
; by default shortcodes are stripped (strip_shortcodes=”1″) and all registered shortcodes are removed[pagemagic_image_excerpt show_child_count="1"]
; by default the child_count is disabled (show_child_count=”0″); If show_child_count=”1″, but count of subpages=0, than child count is not shown[pagemagic_image_excerpt show_child_count="1" child_count_template="Subpages: %child_count%"]
; by default child_count_template=”Subpages: %child_count%”[pagemagic_image_excerpt show_meta_key="your_meta_key"]
; by default the show_meta_key is empty (show_meta_key=””); If show_meta_key is enabled, but meta_value is empty, than meta_key is not shown[pagemagic_image_excerpt show_meta_key="your_meta_key" meta_template="Meta: %meta%"]
; by default meta_template=”%meta%”[pagemagic_image_excerpt class="pagemagic-cols-2"]
; available classes: pagemagic-cols-2, pagemagic-cols-3, pagemagic-cols-4, pagemagic-cols-5; works in all modern browsers and IE10+; columns are responsive and become 1 column at less than 768px[More info] about parameters (https://developer.wordpress.org/reference/functions/get_pages/#parameters) for [pagemagic_image_excerpt].