=== Page-list === Contributors: webvitaly Donate link: http://web-profile.net/donate/ Tags: page-list, pagelist, sitemap, subpages, siblings Requires at least: 3.0 Tested up to: 6.6 Stable tag: 5.7 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl.html
[pagelist], [subpages], [siblings] and [pagelist_ext] shortcodes
== Description ==
= shortcodes: =
= examples with aditional parameters: =
[pagelist child_of="4" depth="2" exclude="6,7,8"]
[pagelist_ext child_of="4" exclude="6,7,8" image_width="50" image_height="50"]
== Other Notes ==
= Parameters for [pagelist], [subpages] and [siblings]: =
[pagelist child_of="current"]
;[pagelist child_of="parent"]
;[pagelist depth="3"]
; by default depth is unlimited (depth="0"); Displays pages at any depth and arranges them in a flat list: [pagelist depth="-1"]
;[pagelist child_of="4"]
;[pagelist exclude="6,7,8"]
; You may exclude current page: [pagelist exclude="current"]
;[pagelist exclude_tree="7,10"]
;[pagelist include="6,7,8"]
;[pagelist title_li="<h2>List of pages</h2>"]
; by default there is no title (title_li="");[pagelist authors="2,5"]
; by default all authors are included (authors="");[pagelist number="10"]
; by default the number is unlimited (number="");[pagelist offset="5"]
; by default there is no offset (offset="");[pagelist post_type="page"]
; by default: (post_type="page"); possible values: page, revision, Hierarchical Custom Post Types ('post' is not a Hierarchical Post Type);[pagelist post_status="private"]
; by default: (post_status="publish"); possible values: publish, private, draft;[pagelist meta_key="metakey" meta_value="metaval"]
;[pagelist show_date="created"]
; possible values: created, modified, updated;[pagelist date_format="l, F j, Y"]
; by default use the date format configured in your WordPress options;[pagelist 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);[pagelist sort_order="desc"]
; by default: (sort_order="asc"); possible values: asc, desc;[pagelist link_before="<span>"]
; you may specify html tags only in the HTML
tab in your Rich-text editor;[pagelist link_after="</span>"]
; you may specify html tags only in the HTML
tab in your Rich-text editor;[pagelist class="listclass"]
; by default the class is empty (class="");[pagelist class="page-list-cols-2"]
; 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;More info about params for [pagelist], [subpages], [siblings].
= Parameters for [pagelist_ext]: =
[pagelist_ext show_image="0"]
; "show_image" have higher priority than "show_first_image"; by default: show_image="1";[pagelist_ext show_first_image="1"]
; by default: show_first_image="0";[pagelist_ext show_title="0"]
; by default: show_title="1";[pagelist_ext show_content="0"]
; by default: show_content="1";[pagelist_ext 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;[pagelist_ext limit_content="100"]
; by default: limit_content="250";[pagelist_ext image_width="80"]
; by default: image_width="50";[pagelist_ext image_height="80"]
; by default: image_height="50";[pagelist_ext child_of="4"]
; by default it shows subpages to the current page;[pagelist_ext parent="4"]
; by default parent="-1" and depth is unlimited;[pagelist_ext 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);[pagelist_ext sort_order="desc"]
; by default: (sort_order="asc"); possible values: asc, desc;* hierarchical - display subpages below their parent page [pagelist_ext hierarchical="0"]
; by default: hierarchical="1";[pagelist_ext hierarchical="0"]
; by default: hierarchical="1";[pagelist_ext exclude="6,7,8"]
;[pagelist_ext exclude_tree="7,10"]
;[pagelist_ext include="6,7,8"]
;[pagelist_ext meta_key="metakey" meta_value="metaval"]
;[pagelist_ext authors="6,7,8"]
;[pagelist_ext number="10"]
; by default the number is unlimited (number="");[pagelist_ext offset="5"]
; by default there is no offset (offset="");[pagelist_ext post_type="page"]
; by default: (post_type="page"); possible values: page, revision, Hierarchical Custom Post Types ('post' is not a Hierarchical Post Type);[pagelist_ext post_status="private"]
; by default: (post_status="publish"); possible values: publish, private, draft;[pagelist_ext class="listclass"]
; by default the class is empty (class="");[pagelist_ext strip_tags="0"]
; by default the tags are stripped (strip_tags="1");[pagelist_ext strip_shortcodes="0"]
; by default shortcodes are stripped (strip_shortcodes="1") and all registered shortcodes are removed;[pagelist_ext 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;[pagelist_ext show_child_count="1" child_count_template="Subpages: %child_count%"]
; by default child_count_template="Subpages: %child_count%";[pagelist_ext 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;[pagelist_ext show_meta_key="your_meta_key" meta_template="Meta: %meta%"]
; by default meta_template="%meta%";[pagelist_ext class="page-list-cols-2"]
; 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;More info about params for [pagelist_ext].
== Frequently Asked Questions ==
= How to show the list of posts? =
To show list of posts you can use List Category Posts plugin.
= On what functions shortcodes are based? =
Shortcodes [pagelist], [subpages], [siblings] are based on wp_list_pages() function. Shortcode [pagelist_ext] is based on get_pages() function.
= What is the difference between [pagelist], [subpages] and [siblings]? =
Shortcodes [pagelist], [subpages] and [siblings] accept the same parameters. The only difference is that [subpages] and [siblings] not accept child_of
parameter, because [subpages] shows subpages to the current page and [siblings] shows subpages to the parent page.
= How to create sitemap.xml? = To create sitemap.xml you can use Google XML Sitemaps plugin.
= Is there "more-link" feature in the plugin? = No, there is no "more-link" feature in the plugin. Because "more-link":
= What to do if you need to change the plugin's code? = When you changed the plugin's code you should also change the plugin's version to '100' (for example) to avoid updates, which could override and delete your code.
== Screenshots ==
== Changelog ==
= 5.7 =
= 5.6 =
= 5.5 =
= 5.4 =
= 5.3 =
= 5.2 =
= 5.1 =
= 5.0 =
= 4.3 =
= 4.2 =
= 4.1 =
= 4.0 =
= 3.8 =
= 3.7 =
= 3.6 =
= 3.5 =
= 3.4 =
= 3.3 =
= 3.2 =
= 3.1 =
= 3.0 =
= 2.9 =
= 2.8 =
= 2.7 =
= 2.6 =
= 2.5 =
= 2.4 =
= 2.3 =
= 2.2 =
= 2.1 =
= 2.0 =
= 1.9 =
= 1.8 =
= 1.7 =
= 1.6 =
= 1.5 =
= 1.4 =
= 1.3.0 =
= 1.2.0 =
= 1.0.0 =
== Installation ==
[pagelist]
, [subpages]
, [siblings]
, [pagelist_ext]