Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
CC Child Pages icon

CC Child Pages

v1.45
by caterhamcomputing · 4.9 (48 reviews)

Adds a responsive shortcode to list child and sibling pages. Pre-styled or specify your own CSS class for custom styling. Includes child pages widget.

10K+ active installs Updated Jan 21, 2025 Tested to 6.7.2 Requires PHP 5.4
Try Demo Download
Pre-installed Ready in ~10s No card
CC Child Pages

About CC Child Pages

CC Child Pages is a plugin that allows you to display links to child pages on your WordPress site. You can choose the number of columns and customize the layout. The plugin also includes a widget for displaying child pages in your sidebars.

Screenshots

CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot
CC Child Pages screenshot

Frequently asked questions

What is CC Child Pages?
CC Child Pages is a WordPress plugin that allows you to display links to child pages using a shortcode. It presents child pages in responsive boxes, including the page title, an excerpt, and a "Read more..." link.
How can I customize the layout of child pages?
You can choose between 1, 2, 3, and 4 column layouts using the 'cols' parameter in the shortcode. For smaller devices, 3 and 4 column layouts will automatically resize to a 2-column layout to maintain readability.
Does CC Child Pages include a widget?
Yes, CC Child Pages includes a widget for displaying child pages in sidebars. The widget can show children of the current page, a specific page, or all pages, and offers sorting options by menu order, title, or ID.
How do I use the shortcode to display child pages?
The simplest usage is [child_pages] which shows child pages for the current page in 2 columns. You can specify the number of columns with [child_pages cols="value"] or display child pages of a specific page using its ID, for example, [child_pages id="42"].
Can I exclude specific pages from being displayed?
Yes, you can exclude pages by using the 'exclude' parameter in the shortcode. This allows you to provide a comma-separated list of Page IDs that you do not wish to display.

Changelog

1.45

  • Maintenance release- minor bug fix to setting page.

1.44

  • Maintenance release with security improvements to legacy widget.

1.43

  • Maintenance release with security improvements.

1.42

  • Bug fix for hide_titles function to stop it breaking custom templates.

    1.41 =

  • Added hide_titles option. Small bug fix for widget.

1.40

  • Maintenance release. Added Exclude Tree option to widget

1.39

  • Small fix to CC Child Pages Widget

1.38

  • Small fix to CSS for page navigation links

1.37

  • Small changes to try to prevent problems interacting with other plugins that may not return correct values in their filters

1.36

  • Bug fix – by default private pages will be visible or hidden depending on whether the user is logged in
  • Added post_status parameter to show child pages with specific statuses
  • Added button to the settings page to disable loading of Skins CSS file if not being used (for performance)
  • Added additional classes to child page elements to allow styling of elements with parent pages (and even specific parent pages)
  • Added use_custom_thumbs parameter – specify the name of a custom field that will specify the ID or URL of an image to use as a thumbnail

1.35

  • Bug fix – implemented code to remove [child_pages] shortcode from pages before generating excerpts to avoid getting stuck in an infinite loop under some circumstances
  • Added show_page_content parameter to show complete page content
  • Added link_target and use_custom_link_target parameters to allow control of how links open
  • depth now works with the shortcode when not using list mode. Added subpage_title parameter to display a title for sub-pages whe depth is greater than 1 and list="true" is NOT specified
  • Added show_author, show_date_created and show_date_modified parameters to allow display of post information
  • order can now be set to rand to show items in a random order

1.34

  • Added ignore_sticky_posts parameter
  • Added limit parameter to limit the number of pages displayed
  • Added offset parameter to allow skipping a number of pages

1.33

  • Added posts_per_page and page parameters for basic pagination
  • Added page_ids parameter to allow display of specific pages
  • Added use_custom_link parameter to allow the over-riding of the link target on a per page basis
  • Added new CSS IDs to help make styling more flexible

1.32

  • Bug fix – widget was displaying sibling pages instead of child pages under certain circumstances

1.31

  • Added siblings option to the widget
  • Added show_current_page option for use with the shortcode when siblings is set to true
  • Added hide_wp_more to remove the standard “Continue reading…” message from excerpts
  • Added use_custom_excerpt, use_custom_title and use_custom_more to the shortcode
  • Added more filters and actions to widget and shortcode to allow extension of plugin

1.30

  • Bug fix – internationalization now works correctly (translations need work though – currently only French, which is known to be poor)
  • Added more filters to widget, list and shortcode to allow extension of plugin

1.29

  • Bug fix – widget will now show on all pages/posts if “All Pages” or a specific parent page is selected
  • Bug fix – shortcode now closes query correctly (was causing issues with some themes)
  • The shortcode will now work with custom post types
  • You can now specify multiple parent page IDs (when using list="true", only a single parent ID can be specified)

1.28

  • Further improvements to integration when used with Video Thumbnails plugin

1.27

  • Added the siblings parameter to show siblings of current page
  • Improved integration when used with Video Thumbnails plugin
  • Minor bug fixes for CC Child Pages Widget

1.26

  • The CSS for displaying child pages has been re-written to allow for custom CSS to be more easily written – for example, specifying a border should no longer cause problems in the responsive layout. Fallbacks have been put in place for older versions of Internet Explorer.
  • The handling of Custom CSS from the settings page has been improved.
  • The loading of the plugin CSS has been returned to the default manner. While this means that CSS is loaded on pages where the shortcode is not used, it means that the CSS can be correctly minified by other plugins and ensures that valid HTML is generated.

1.25

  • New option added to widget to show all top-level pages and their children. This can now be used as a complete replacement for the standard Pages widget
  • New option added to the plugins settings page allowing custom CSS code to be specified from within the plugin. This feature has been requested several times. This functionality will be expanded on in the future.

1.24

  • Further enhancements to CSS when using both the list and cols parameters

1.23

  • Minor fix for CSS when using both the list and cols parameters

1.22

  • Changes to how excerpts are generated from content when no custom excerpt is specified.
  • Changed how CSS is queued – the CSS file will now only be included in the page if the shortcode is specified, helping to keep page sizes to a minimum.

1.21

  • Change to allow cols parameter to be used when list parameter is set to true.
  • Changed .ccpages_excerpt container to <div> (was <p>) to avoid potentially invalid HTML when HTML excerpts are used.

1.20

  • Change to improve efficiency when the plugin attempts to force thumbnail creation via Video Thumbnails plugin
  • Minor change to avoid output of empty links when applying links to thumbnails and no thumbnail is present
  • Minor change to escaping special characters in more parameter

1.19

  • Small change to how the plugin works with thumbnails. It will now use thumbnails generated by the Video Thumbnails plugin if it is installed.
  • Added link_thumbs parameter. If set to "true", thumbnails will link to the child page.
  • CSS is no longer minified, in order to make it easier to view existing CSS when defining your own custom styles. The CSS can be minified by other plugins if required.

1.18

  • Added settings page to allow disabing of button in Visual Editor (TinyMCE)
  • Added the truncate_excerpt parameter to the shortcode, defaults to true but setting to false stops custom excerpts from being shortened (where no custom excerpt exists, page content will still be truncated)

1.17

  • Small change to how custom excerpts are handled for interoperability with Rich Text Excerpts plugin.

1.16

  • Added the hide_excerpt parameter

1.15

  • Added hide_more parameter to hide “Read more …” links.
  • Added link_titles parameter to make titles link to pages.
  • Added title_link_class parameter for styling links in page titles.

1.14

  • Bug fix: Corrected missing <ul> tags in widget
  • Minor CSS changes to improve compatibility with certain themes

1.13

  • Bug fix: Corrected problem with titles including special characters
  • Added orderby and order parameters to control the display order of child pages

1.12

  • Bug fix: Corrected problem when automatic excerpt returns value including a shortcode

1.11

  • Bug fix: Corrected small bug introduced in version 1.10 when using list="true"

1.10

  • Added exclude parameter
  • Added depth parameter (only used if list is set to "true")

1.9

  • Added editor button
  • Added custom excerpt capability to pages by default
  • Refined generation of page excerpt where no custom excerpt exists
  • Enhanced functionality of the thumbs option – you can now set this to the desired thumbnail size e.g. thumbs="large", thumbs="full", thumbs="my-custom-size", etc.

1.8

  • CC Child Pages widget enhanced to allow display of children of current page or a specific page
  • CC Child Pages widget enhanced to allow depth to be specified

1.7

  • Changed plugin author to show business name (Caterham Computing)
  • Added CC Child Pages widget
  • Added various new classes to help with custom CSS styling

1.6

  • Added the words parameter. When set to a value greater than 0, the number of words in the excerpt will be trimmed if greater than the specified value.

1.5

  • Added the thumbs parameter. If set to "true", the featured image (if set) of a page will be shown.

1.4

  • Added more parameter to override standard “Read more …” text
  • Internationalisation …

1.3

  • Corrected small error when using list parameter

1.2

  • Added the list parameter

1.1

  • Added the skin parameter
  • Added the class parameter

1.0

  • Initial Release

Try other plugins

Really Simple SSL icon

Really Simple SSL

4.9 · 4M+ installs

The easiest way to improve security! Leverage your SSL certificate and protect your website visitors.