{"id":125202,"date":"2011-04-20T08:00:00","date_gmt":"2011-04-20T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/page-list\/"},"modified":"2025-09-30T06:08:00","modified_gmt":"2025-09-30T06:08:00","slug":"page-list","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/page-list\/","title":{"rendered":"Page-list"},"content":{"rendered":"<ul>\n<li><strong><a href=\"http:\/\/web-profile.net\/wordpress\/plugins\/page-list\/\" title=\"Plugin page\" rel=\"nofollow ugc\">Page-list<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/page-list\/other_notes\/\" title=\"Page-list params\" rel=\"ugc\">all Page-list params<\/a><\/strong><\/li>\n<li><strong><a href=\"http:\/\/web-profile.net\/donate\/\" title=\"Support the development\" rel=\"nofollow ugc\">Donate<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/webvitalii\/page-list\" title=\"Fork\" rel=\"nofollow ugc\">GitHub<\/a><\/strong><\/li>\n<\/ul>\n<h4>shortcodes:<\/h4>\n<ul>\n<li><strong>[pagelist]<\/strong> \u2013 hierarchical tree of all pages on site (useful to show sitemap of the site);<\/li>\n<li><strong>[subpages]<\/strong> \u2013 hierarchical tree of subpages to the current page;<\/li>\n<li><strong>[siblings]<\/strong> \u2013 hierarchical tree of sibling pages to the current page;<\/li>\n<li><strong>[pagelist_ext]<\/strong> \u2013 list of pages with featured image and with excerpt;<\/li>\n<\/ul>\n<h4>examples with aditional parameters:<\/h4>\n<ul>\n<li><code>[pagelist child_of=\"4\" depth=\"2\" exclude=\"6,7,8\"]<\/code><\/li>\n<li><code>[pagelist_ext child_of=\"4\" exclude=\"6,7,8\" image_width=\"50\" image_height=\"50\"]<\/code><\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/page-list\/other_notes\/\" title=\"Page-list params\" rel=\"ugc\">all Page-list params<\/a><\/strong><\/li>\n<\/ul>\n<h4>Parameters for [pagelist], [subpages] and [siblings]:<\/h4>\n<ul>\n<li><strong>[pagelist]<\/strong> \u2013 list of all pages as the hierarchical list;<\/li>\n<li><strong>[subpages]<\/strong> \u2013 list of subpages to the current page as the hierarchical list; Same as: <code>[pagelist child_of=\"current\"]<\/code>;<\/li>\n<li><strong>[siblings]<\/strong> \u2013 list of sibling pages to the current page as the hierarchical list; Same as: <code>[pagelist child_of=\"parent\"]<\/code>;<\/li>\n<li><strong>depth<\/strong> \u2013 how many levels in the hierarchy of pages are to be included in the list: <code>[pagelist depth=\"3\"]<\/code>; by default depth is unlimited (depth=\u201d0\u2033); Displays pages at any depth and arranges them in a flat list: <code>[pagelist depth=\"-1\"]<\/code>;<\/li>\n<li><strong>child_of<\/strong> \u2013 displays the sub-pages of a single Page by ID: <code>[pagelist child_of=\"4\"]<\/code>;<\/li>\n<li><strong>exclude<\/strong> \u2013 define a comma-separated list of Page IDs to be excluded from the list: <code>[pagelist exclude=\"6,7,8\"]<\/code>; You may exclude current page: <code>[pagelist exclude=\"current\"]<\/code>;<\/li>\n<li><strong>exclude_tree<\/strong> \u2013 define a comma-separated list of parent Page IDs and all its subpages to be excluded: <code>[pagelist exclude_tree=\"7,10\"]<\/code>;<\/li>\n<li><strong>include<\/strong> \u2013 include a comma-separated list of Page IDs into the list: <code>[pagelist include=\"6,7,8\"]<\/code>;<\/li>\n<li><strong>title_li<\/strong> \u2013 set the text and style of the Page list\u2019s heading: <code>[pagelist title_li=\"<br \/>\n<h2>List of pages<\/h2>\n<p>\"]<\/code>; by default there is no title (title_li=\u201d\u201d);<\/li>\n<li><strong>authors<\/strong> \u2013 only include pages authored by the authors in this comma-separated list of author IDs: <code>[pagelist authors=\"2,5\"]<\/code>; by default all authors are included (authors=\u201d\u201d);<\/li>\n<li><strong>number<\/strong> \u2013 sets the number of pages to display: <code>[pagelist number=\"10\"]<\/code>; by default the number is unlimited (number=\u201d\u201d);<\/li>\n<li><strong>offset<\/strong> \u2013 the number of pages to pass over (or displace) before collecting the set of pages: <code>[pagelist offset=\"5\"]<\/code>; by default there is no offset (offset=\u201d\u201d);<\/li>\n<li><strong>post_type<\/strong> \u2013 list associated with a certain hierarchical Post Type <code>[pagelist post_type=\"page\"]<\/code>; by default: (post_type=\u201dpage\u201d); possible values: page, revision, Hierarchical Custom Post Types (\u2018post\u2019 is not a Hierarchical Post Type);<\/li>\n<li><strong>post_status<\/strong> \u2013 a comma-separated list of all post status types: <code>[pagelist post_status=\"private\"]<\/code>; by default: (post_status=\u201dpublish\u201d); possible values: publish, private, draft;<\/li>\n<li><strong>meta_key<\/strong> and <strong>meta_value<\/strong> \u2013 only include the pages that have this Custom Field Key and this Custom Field Value: <code>[pagelist meta_key=\"metakey\" meta_value=\"metaval\"]<\/code>;<\/li>\n<li><strong>show_date<\/strong> \u2013 display creation or last modified date next to each Page: <code>[pagelist show_date=\"created\"]<\/code>; possible values: created, modified, updated;<\/li>\n<li><strong>date_format<\/strong> \u2013 the format of the Page date set by the show_date parameter: <code>[pagelist date_format=\"l, F j, Y\"]<\/code>; by default use the date format configured in your WordPress options;<\/li>\n<li><strong>sort_column<\/strong> \u2013 sort the list of pages by column: <code>[pagelist sort_column=\"menu_order\"]<\/code>; by default: (sort_column=\u201dmenu_order, post_title\u201d); possible values: post_title, menu_order, post_date (sort by creation time), post_modified, ID, post_author, post_name (sort by page slug);<\/li>\n<li><strong>sort_order<\/strong> \u2013 the sort order of the list of pages (either ascending or descending): <code>[pagelist sort_order=\"desc\"]<\/code>; by default: (sort_order=\u201dasc\u201d); possible values: asc, desc;<\/li>\n<li><strong>link_before<\/strong> \u2013 sets the text or html that precedes the link text inside link tag: <code>[pagelist link_before=\"<span>\"]<\/code>; you may specify html tags only in the <code>HTML<\/code> tab in your Rich-text editor;<\/li>\n<li><strong>link_after<\/strong> \u2013 sets the text or html that follows the link text inside link tag: <code>[pagelist link_after=\"<\/span>\"]<\/code>; you may specify html tags only in the <code>HTML<\/code> tab in your Rich-text editor;<\/li>\n<li><strong>class<\/strong> \u2013 the CSS class for list of pages: <code>[pagelist class=\"listclass\"]<\/code>; by default the class is empty (class=\u201d\u201d);<\/li>\n<li>columns \u2013 for splitting list of pages into columns: <code>[pagelist class=\"page-list-cols-2\"]<\/code>; available classes: page-list-cols-2, page-list-cols-3, page-list-cols-4, page-list-cols-5; works in all modern browsers and IE10+; columns are responsive and become 1 column at less than 768px;<\/li>\n<\/ul>\n<p>More <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/wp_list_pages#Parameters\" rel=\"nofollow ugc\">info about params<\/a> for [pagelist], [subpages], [siblings].<\/p>\n<h4>Parameters for [pagelist_ext]:<\/h4>\n<ul>\n<li><strong>[pagelist_ext]<\/strong> \u2013 by default shows list of subpages to current page; but if there is no subpages than all pages will be shown;<\/li>\n<li><strong>show_image<\/strong> \u2013 show or hide featured image <code>[pagelist_ext show_image=\"0\"]<\/code>; \u201cshow_image\u201d have higher priority than \u201cshow_first_image\u201d; by default: show_image=\u201d1\u2033;<\/li>\n<li><strong>show_first_image<\/strong> \u2013 show or hide first image from content if there is no featured image <code>[pagelist_ext show_first_image=\"1\"]<\/code>; by default: show_first_image=\u201d0\u2033;<\/li>\n<li><strong>show_title<\/strong> \u2013 show or hide title <code>[pagelist_ext show_title=\"0\"]<\/code>; by default: show_title=\u201d1\u2033;<\/li>\n<li><strong>show_content<\/strong> \u2013 show or hide content <code>[pagelist_ext show_content=\"0\"]<\/code>; by default: show_content=\u201d1\u2033;<\/li>\n<li><strong>more_tag<\/strong> \u2013 output all content before and after more tag: <code>[pagelist_ext more_tag=\"0\"]<\/code>; this parameter does not add \u201cmore-link\u201d to the end of content, it just cut content before more-tag; \u201cmore_tag\u201d parameter have higher priority than \u201climit_content\u201d; by default the more_tag is enabled (more_tag=\u201d1\u2033) and showing only content before more tag;<\/li>\n<li><strong>limit_content<\/strong> \u2013 content is limited by \u201cmore-tag\u201d if it is exist or by \u201climit_content\u201d parameter <code>[pagelist_ext limit_content=\"100\"]<\/code>; by default: limit_content=\u201d250\u2033;<\/li>\n<li><strong>image_width<\/strong> \u2013 width of the image <code>[pagelist_ext image_width=\"80\"]<\/code>; by default: image_width=\u201d50\u2033;<\/li>\n<li><strong>image_height<\/strong> \u2013 height of the image <code>[pagelist_ext image_height=\"80\"]<\/code>; by default: image_height=\u201d50\u2033;<\/li>\n<li><strong>child_of<\/strong> \u2013 displays the sub-pages of a single Page by ID: <code>[pagelist_ext child_of=\"4\"]<\/code>; by default it shows subpages to the current page;<\/li>\n<li><strong>parent<\/strong> \u2013 list those pages that have the provided single page only ID as parent: <code>[pagelist_ext parent=\"4\"]<\/code>; by default parent=\u201d-1\u2033 and depth is unlimited;<\/li>\n<li><strong>sort_column<\/strong> \u2013 sort the list of pages by column: <code>[pagelist_ext sort_column=\"menu_order\"]<\/code>; by default: (sort_column=\u201dmenu_order, post_title\u201d); possible values: post_title, menu_order, post_date (sort by creation time), post_modified, ID, post_author, post_name (sort by page slug);<\/li>\n<li><strong>sort_order<\/strong> \u2013 the sort order of the list of pages (either ascending or descending): <code>[pagelist_ext sort_order=\"desc\"]<\/code>; by default: (sort_order=\u201dasc\u201d); possible values: asc, desc;* <strong>hierarchical<\/strong> \u2013 display subpages below their parent page <code>[pagelist_ext hierarchical=\"0\"]<\/code>; by default: hierarchical=\u201d1\u2033;<\/li>\n<li><strong>hierarchical<\/strong> \u2013 display subpages below their parent page <code>[pagelist_ext hierarchical=\"0\"]<\/code>; by default: hierarchical=\u201d1\u2033;<\/li>\n<li><strong>exclude<\/strong> \u2013 define a comma-separated list of Page IDs to be excluded from the list: <code>[pagelist_ext exclude=\"6,7,8\"]<\/code>;<\/li>\n<li><strong>exclude_tree<\/strong> \u2013 define a comma-separated list of parent Page IDs and all its subpages to be excluded: <code>[pagelist_ext exclude_tree=\"7,10\"]<\/code>;<\/li>\n<li><strong>include<\/strong> \u2013 include a comma-separated list of Page IDs into the list: <code>[pagelist_ext include=\"6,7,8\"]<\/code>;<\/li>\n<li><strong>meta_key<\/strong> and <strong>meta_value<\/strong> \u2013 only include the pages that have this Custom Field Key and this Custom Field Value: <code>[pagelist_ext meta_key=\"metakey\" meta_value=\"metaval\"]<\/code>;<\/li>\n<li><strong>authors<\/strong> \u2013 only include the pages written by the given author(s) <code>[pagelist_ext authors=\"6,7,8\"]<\/code>;<\/li>\n<li><strong>number<\/strong> \u2013 sets the number of pages to display: <code>[pagelist_ext number=\"10\"]<\/code>; by default the number is unlimited (number=\u201d\u201d);<\/li>\n<li><strong>offset<\/strong> \u2013 the number of pages to pass over (or displace) before collecting the set of pages: <code>[pagelist_ext offset=\"5\"]<\/code>; by default there is no offset (offset=\u201d\u201d);<\/li>\n<li><strong>post_type<\/strong> \u2013 list associated with a certain hierarchical Post Type <code>[pagelist_ext post_type=\"page\"]<\/code>; by default: (post_type=\u201dpage\u201d); possible values: page, revision, Hierarchical Custom Post Types (\u2018post\u2019 is not a Hierarchical Post Type);<\/li>\n<li><strong>post_status<\/strong> \u2013 a comma-separated list of all post status types: <code>[pagelist_ext post_status=\"private\"]<\/code>; by default: (post_status=\u201dpublish\u201d); possible values: publish, private, draft;<\/li>\n<li><strong>class<\/strong> \u2013 the CSS class for list of pages: <code>[pagelist_ext class=\"listclass\"]<\/code>; by default the class is empty (class=\u201d\u201d);<\/li>\n<li><strong>strip_tags<\/strong> \u2013 strip tags or not: <code>[pagelist_ext strip_tags=\"0\"]<\/code>; by default the tags are stripped (strip_tags=\u201d1\u2033);<\/li>\n<li><strong>strip_shortcodes<\/strong> \u2013 strip registered shortcodes or not: <code>[pagelist_ext strip_shortcodes=\"0\"]<\/code>; by default shortcodes are stripped (strip_shortcodes=\u201d1\u2033) and all registered shortcodes are removed;<\/li>\n<li><strong>show_child_count<\/strong> \u2013 show count of subpages: <code>[pagelist_ext show_child_count=\"1\"]<\/code>; by default the child_count is disabled (show_child_count=\u201d0\u2033); If show_child_count=\u201d1\u2033, but count of subpages=0, than child count is not shown;<\/li>\n<li><strong>child_count_template<\/strong> \u2013 the template of child_count: <code>[pagelist_ext show_child_count=\"1\" child_count_template=\"Subpages: %child_count%\"]<\/code>; by default child_count_template=\u201dSubpages: %child_count%\u201d;<\/li>\n<li><strong>show_meta_key<\/strong> \u2013 show or hide meta key: <code>[pagelist_ext show_meta_key=\"your_meta_key\"]<\/code>; by default the show_meta_key is empty (show_meta_key=\u201d\u201d); If show_meta_key is enabled, but meta_value is empty, than meta_key is not shown;<\/li>\n<li><strong>meta_template<\/strong> \u2013 the template of meta: <code>[pagelist_ext show_meta_key=\"your_meta_key\" meta_template=\"Meta: %meta%\"]<\/code>; by default meta_template=\u201d%meta%\u201d;<\/li>\n<li>columns \u2013 for splitting list of pages into columns: <code>[pagelist_ext class=\"page-list-cols-2\"]<\/code>; available classes: page-list-cols-2, page-list-cols-3, page-list-cols-4, page-list-cols-5; works in all modern browsers and IE10+;  columns are responsive and become 1 column at less than 768px;<\/li>\n<\/ul>\n<p>More <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/get_pages#Parameters\" rel=\"nofollow ugc\">info about params<\/a> for [pagelist_ext].<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes<\/p>\n","protected":false},"author":65,"featured_media":319231,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Page-list - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"[pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes"},"footnotes":""},"categories":[1],"tags":[18956,23834,40978,799,5675],"class_list":["post-125202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-page-list","tag-pagelist","tag-siblings","tag-sitemap","tag-subpages"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/125202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=125202"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/125202\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/319231"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=125202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=125202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=125202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}