This shortcode will output a list of pages which are child pages of either the current page, or a page specified in the parent_id
shortcode parameter. It can be used to automate the production of archive or listing pages.
Shortcode options
- parent_id
- [boolean – default ID of current post/page]
This can be included if you want to show a list of child pages of a different page than the one you enter the shortcode into. - show_excerpt
- [boolean – default true]
This will include the excerpt for the posts/pages in the list. - show_thumb
- [boolean – default true]
This will include the fewatured image (if one is set) for the posts/pages in the list. - thumb_size
- [string – default featured-post
This is used to set the size of the thumbnail used. - thumb_class
- [string – default alignright
This will set a CSS class for the thumbnail used. - title_tag
- [string – default h3
This will set the HTML tag used for the title for the posts/pages in the list. - read_more
- [string – default ”
This will insert a link to the post/page using the text given – otherwise only the title and thumbnail (if used) will link to the post/page. - class
- [string – default ”
This sets a CSS class on the list’s outerul
wrapper. - li_class
- [string – default ‘clearfix
This sets a CSS class on the list’s individualli
elements. - exclude
- [string – default ”
This should consist of a comma-separated list of page/post IDs to exclude from the list.