You can use shortcode for display child pages from the page.
Some Feture
- This plugin will add shortcode
[child_pages]for display child pages. - You can customize default HTML template & Stylesheet from your plugin.
- This plugin will be able to “excerpt” to the pages.
Excerpt support on the Page
Shortcode sample
Dsiplaying child pages from the Page
You can customize html output and stylesheet
filter hook for template
<?php
add_filter("child-pages-shortcode-template", "my_template");
function my_template($template) {
return '<div class="%class%"><a href="%post_url%">%post_thumb%</a></div>';
}
?>
- %post_id% – ID of the Page
- %width% – Width of block for single page
- %post_url% – Page permalink
- %post_thumb% – <img> for Post thubmail
- %post_title% – Page title
- %post_excerpt% – Page excerpt
filter hook for stylesheet
<?php
add_filter("child-pages-shortcode-stylesheet", "my_style");
function my_style($url) {
return 'http://example.com/path/to/style.css';
}
?>
Default source of template
<div id="child_page-%post_id%" class="child_page" style="width:%width%;">
<div class="child_page-container">
<div class="post_thumb"><a href="%post_url%">%post_thumb%</a></div>
<div class="post_content">
<h4><a href="%post_url%">%post_title%</a></h4>
<div class="post_excerpt">%post_excerpt%</div>
</div>
</div>
</div>
Change log
Donate
It is hard to continue development and support for WordPress plugins without contributions from users like you.




How can I change the [...] to Learn More and a link to the page?
Is it possible to add pagination? I’ve more than 30 child pages and iI’d like to show only 10 per page.
Sorry, pagination is not supported.
Hello Takayuki,
Is it possible to exclude child-pages from the output based on ID?
If not, can you add this as a feature request.
Thanks!
Hey,
I have an issue with wordpress 3.5.1 where the “read more” does not link to the child post. It links to the parent. I have tried to edit the plugin to work but have not been able to get it working.
Hey,
On wordpress 3.5.1 the “Continue Reading” does not like to the child theme but instead is linked to the parent page. I have tried to change this but nothing worked. Hope for an easy fix soon.
It would be nice if the title were centered under the thumbnail instead of being left aligned.
Edit the css file.
Add text-align:center; to .child_pages .post_thumb
.child_pages .post_thumb
{
text-align:center;
overflow:hidden;
background-image:url(img/camera.png);
background-position:center center;
background-repeat:no-repeat;
}
And it should look like this: http://kpopmp3.net/kpop-artists/
Hi Daniel.
This plugin have a hook for customize css style.
You can change stylesheet file like below.
<?phpadd_filter("child-pages-shortcode-stylesheet", "my_style");
function my_style($url) {
return 'http://example.com/path/to/style.css;
}
Thanks!
This plug in is perfect for what I wanted to show on the parent page. Thank you for your hard work!
How do I change the color of the child page name “A Pink” (http://kpopmp3.net/wp-content/uploads/2013/03/child_page.png).
Also, instead of having an excerpt can I show a “read more” button instead?
This plug in is perfect for what I wanted to show on the parent page. Thank you for your hard work!
How do I change the color of the child page name “A Pink” (http://kpopmp3.net/wp-content/uploads/2013/03/child_page.png).
Also, instead of having an excerpt can I show a “read more” button instead?
Is it possible to turn the excerpt off? I’d prefer to just have the image and title of the pages.
Is it possible to remove the excerpts? I’m looking to just have the image and a title. Any help would be appreciated!
Hi, I really like this plugin! I have a request, just in case you’d be willing to add something simple:
Would it be possible to add an anchor to each child page display box? That way on the page showing the child pages it will be easy to link within that page.
Something like this:
private function get_template()
{
$html = “\n”;
$html .= ‘‘;
$html .= ”;
…….
…….
…….
}