You can use shortcode for display child pages from the page.
This plugin maintained on GitHub.
Some features
- 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.
Example
Display child pages of the current page.
[child_pages width=」33%」]
Args
- id – ID of page (Optional)
- size – Post thumbnail size. e.g. 『thumbnail』 or 『large』
- width – width of block for child pages.
- disable_shortcode – Shortcode not work in the template if set true.
- disable_excerpt_filters – filters not work for the excerpt if set true.
filter hooks example
Filter for query_posts() query.
'publish',
'post_type' => 'page',
'post_parent' => $id_for_the_post,
'orderby' => 'menu_order',
'order' => 'ASC',
'nopaging' => true,
);
add_filters('child-pages-shortcode-query', "my_query");
function my_query($args) {
//
// some code here
//
return $args;
}
?>
Filter for default template.
%post_thumb%





