by douglaskarr on WordPress.org

View of the shortcode.
I could not find an easy plugin that enabled me to use a shortcode that would enable me to publish a list of child pages under a parent page. So, I built one.
The shortcode is [listchildpages]...[/listchildpages]. It accepts several attributes:
ASC or DESC. Default: DESC.publish_date (maps to date). Any valid WP_Query orderby value works.yes|no). Default: no.alignleft, alignright, etc.).current to choose the parent page. Default: current.thumbnail, medium, large, full, or custom size). Default: thumbnail.Examples:
Example 1: Order the child pages by publish date in descending order:
[listchildpages aclass=”” ifempty=”No child pages” orderby=”publish_date” order=”desc” displayimage=”no”]
[/listchildpages]
Example 2: Order the child pages by title in ascending order with the page’s featured image aligned left:
[listchildpages orderby=”title” order=”asc” displayimage=”yes” align=”alignleft”]
[/listchildpages]
Example 3: Target a specific parent page by ID and use medium-sized images:
[listchildpages parent=”123″ displayimage=”yes” size=”medium”]
[/listchildpages]
Example 4: Target a parent page by slug and show full-size featured images:
[listchildpages parent=”about/company” displayimage=”yes” size=”full”]
[/listchildpages]
Example 5: Explicitly set the parent as the current page and use large images:
[listchildpages parent=”current” displayimage=”yes” size=”large”]
[/listchildpages]
The shortcode accepts all of the Order and Orderby Parameters listed within the WordPress class reference.
Built by DK New Media, visit MarTech to keep up on this plugin and other marketing tools to help you grow your online presence!