WordPress allows you to create child pages of any page. For creating a child page all what you do is select the parent page from the Page Attributes meta box on the left of Add New & Edit Pages in WordPress admin area. This tutorial explains you how you can easily display child pages of any page by using simple shortcodes. You can use a custom width and size of page’s thumbnail.
Install and activate Child Pages Shortcode plugin in your WordPress site. Soon after activation you can start using this [child_pages] in your pages to display its child pages. Simply by using this shortcode the plugin automatically detects the child pages of that particular page where this shortcode is used and displays them all. Following are the main features of this plugin:
- This plugin will add shortcode
[child_pages]
display child pages. - You can customize default HTML template on your plugin.
- This plugin will be able to “excerpt” to the pages.
Other than this the plugin provides you few shortcode arguments you can use. For example if you want to use custom width for the links of your child pages then simply use the shortcode like this [child_pages width=”33%”]. You may use following arguments with your shortcode:
- id – ID of page (Optional)
- size – Post thumbnail size. e.g. ‘thumbnail’ or ‘large’
- width – width of block for child pages.