A comprehensive collection of visual components for your site
CC Child Pages
Hospedagem WordPress com plugin CC Child Pages
Onde devo hospedar o plugin CC Child Pages?
Este plugin pode ser hospedado em qualquer servidor que tenha WordPress configurado. Recomendamos fortemente optar por um provedor de hospedagem confiável, com servidores adaptados para WordPress, como o serviço de hospedagem de sites da MCO2.
Hospedando o plugin CC Child Pages em uma empresa de hospedagem confiável
A MCO2, além de instalar o WordPress na versão mais nova para seus clientes, disponibiliza o WP SafePress, um sistema singular que salvaguarda e otimiza seu site conjuntamente.
Por que a Hospedagem WordPress funciona melhor na MCO2?
A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização de imagens e fotos, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São plugins que potencializam seu WordPress para a máxima segurança e o máximo desempenho.
CC Child Pages displays child pages of any parent page in a responsive grid or list layout. You can use it in page content, widget areas, or templates using either:
- the
[child_pages]shortcode, or - the CC Child Pages Gutenberg block.
Both use a modern CSS system based on CSS variables and flexible grid layouts for improved theme compatibility. For older or heavily customised themes, a Legacy CSS mode is available – either by checking the Use Legacy CSS option in the block sidebar, or by setting use_legacy_css="true" in the shortcode.
This makes it ideal for building sub-navigation sections, page directories, or visual site maps.
A Pro add-on is available at ccplugins.co.uk adding advanced skins, hover effects, taxonomy filters, and custom field support – while helping fund ongoing development of the free version.
What’s New in 2.0
- Added Gutenberg block with live preview and sidebar options.
- Reorganised shortcode attributes for clarity and ease of use.
- Introduced modern CSS skins using CSS variables.
- Added Legacy CSS toggle for backward compatibility.
- Retained the legacy widget for existing sites (see below).
- General code and security improvements.
Legacy Widget Notice
The classic CC Child Pages Widget remains available to ensure existing sites continue to function.
However, it is now considered legacy. For new builds, please use either the shortcode or the Gutenberg block inside widget areas via the Shortcode or Block widget.
–
How It Works
1. Gutenberg Block
Add a CC Child Pages block directly in the editor to display child pages of the current or chosen parent. Configure columns, thumbnails, excerpts, and “Read More” links visually from the sidebar.
The block uses modern CSS-based skins, designed for full theme compatibility. If your theme uses older styles or layout methods, you can toggle Use Legacy CSS in the sidebar to switch to the classic stylesheet, which resolves most compatibility issues automatically.
2. Shortcode
Insert [child_pages] into your content. The shortcode supports a comprehensive set of attributes for layout, display, and query control.
Like the block, it uses modern CSS by default and can be switched into legacy mode using use_legacy_css="true" if required.
–
Shortcode Overview
Basic usage:
[child_pages] – Lists child pages of the current page.
Display children of another page:
[child_pages id=”42″]
Display in a grid:
[child_pages cols=”3″ skin=”cards” thumbs=”true”]
Full Attribute Reference (with defaults)
Parent and hierarchy
id– Parent page ID (default: current page viaget_the_ID()).page_ids– Comma-separated list of specific page IDs to include (default: empty).depth– Levels of hierarchy to include (default:1).siblings– Show sibling pages instead of children (default:false).show_current_page– Include the current page in results (default:false).
Sorting and limits / pagination
orderby– Sort field (menu_order,title,date; default:menu_order).order– Sort direction (ASCorDESC; default:ASC).offset– Number of results to skip (default:0).limit– Limit total number of pages displayed (default:-1= no limit).posts_per_page– Items per page when paginating (default:-1).page– Force a specific page number for pagination (default:-1= auto).ignore_sticky_posts– Ignore sticky posts (default:true).post_status– Filter by status (default: empty = standard published pages).
Layout and style
cols– Number of columns (default: empty; theme or skin decides).skin– Visual style template (default:simple).list– Force a list layout instead of a grid (default:false).class– Additional CSS class on the wrapper (default: empty).use_legacy_css– Use the classic stylesheet for compatibility (default:false).
Content display
hide_title– Hide page title (default:false).hide_excerpt– Hide excerpt (default:false).hide_more– Hide “Read more …” link (default:false).hide_wp_more– Ignore WP “more” tag (default:false).show_page_content– Show full page content (default:false).truncate_excerpt– Truncate long excerpts (default:true).words– Words to include in truncated excerpt (default:55).thumbs– Show featured image (default:false).link_thumbs– Make thumbnails clickable (default:false).link_titles– Make titles clickable (default:false).title_link_class– Class for linked titles (default:ccpage_title_link).more– Text for “Read more” link (default:Read more ...).link_target– Target for links (e.g._blank; default: empty).link– Override the link URL (default: empty).use_custom_excerpt– Use custom excerpt field if present (default: empty).use_custom_title– Use custom title field if present (default: empty).use_custom_more– Use custom “more” text field if present (default: empty).use_custom_thumbs– Use custom thumbnail field if present (default: empty).use_custom_link– Meta key for custom link (default:cc_child_pages_link).use_custom_link_target– Meta key for custom target (default:cc_child_pages_link_target).show_author– Show page author (default:false).show_date_created– Show created date (default:false).show_date_modified– Show modified date (default:false).subpage_title– Custom heading above the list/grid (default: empty).
Tip: Most users get great results by combining cols, skin, and thumbs. Switch on Legacy CSS only if your theme needs it.
–
Block Overview
The CC Child Pages block provides a simple, visual interface for configuring these same options, complete with a live preview.
It uses modern CSS for all skins and layouts. If your theme uses older styles or layout rules, enabling the Use Legacy CSS checkbox restores compatibility with the classic grid and list templates.
–
License
This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 or later.
See https://www.gnu.org/licenses/gpl-2.0.html
© 2025 Caterham Computing.
Capturas de tela

CC Child Pages block in the Gutenberg editor.

Example grid layout using the "Cards" skin.

List view with excerpts and dates.

Classic widget (legacy mode for existing installs).











