Sub-Pages
The Sub-Pages shortcode for WordPress can be used to list child pages of a set ID page or of the current page if no ID is set. Check below for example implementations and shortcode documentation:
Sub-Pages Examples
Sub-Pages Shortcodes
Shortcode
[x3m-subpage pageid="1" maxentries="10" column="2"]Sub-Pages Documentation
Here are the shortcode option settings available for Sub-Pages:
| Shortcode Settings | Details |
|---|---|
| pageid=”1″
optional |
This is used to set the page ID for which page the child pages will be listed.
If no pageid is set, it will pull sub-pages of the current page (where the shortcode is published). |
| maxentries=”10″
optional |
This is used to set the maximum number of sub-pages to be included in the list. Pages are ordered alphabetically.
If no maxentries is set, it will display all sub-pages of the page. |
| columns=”2″ | This is used to set the number of columns used to display the list.
The values accepted are “1”, “2” or “3”. For high number of sub-pages to be listed, it is advisable to display them in columns. |
| pagination=”yes”
optional |
This is used to add a pagination to the displayed list. If the list contains more items than the number of columns * max entries, then it will include a pagination at the bottom of the list.
Value accepted is “yes”. |