Title: Depth parameter in shortcode
Last modified: August 22, 2016

---

# Depth parameter in shortcode

 *  Resolved [vitalie8484](https://wordpress.org/support/users/vitalie8484/)
 * (@vitalie8484)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/depth-parameter-in-shortcode/)
 * How to indicate depth parameter in shortcode? At the moment it show and sub-childs.
 * [https://wordpress.org/plugins/cc-child-pages/](https://wordpress.org/plugins/cc-child-pages/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/depth-parameter-in-shortcode/#post-5503649)
 * The depth parameter is not currently supported in the shortcode, as it is mainly
   designed to show direct children of the current or specified page.
 * However, now that you raise the issue I can see that it might be a useful addition
   when displaying an unordered list of pages and will add the option into the next
   release.
 *  Plugin Author [caterhamcomputing](https://wordpress.org/support/users/caterhamcomputing/)
 * (@caterhamcomputing)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/depth-parameter-in-shortcode/#post-5503699)
 * I have now released a new version of the plugin (v1.10) which includes the `depth`
   parameter (used only when in list mode: `list="true"`).
 * Values can be:
 * `depth="-1"` Displays pages at any depth and arranges them in a single, flat 
   list
    `depth="0"` Displays pages at any depth and arranges them hierarchically
   in nested lists `depth="1"` (Default) Displays top-level Pages only when set 
   to any value greater than 1, the shortcode displays that depth of child pages
 * If not specified, it will default to a depth of 1 as per the original version.
 * I have also added the `exclude` parameter which takes a comma separated list 
   of Page IDs and works in all modes:
 * `[child_pages exclude="3,5,33"]`
 * Hopefully this will now meet your requirements.
 *  Thread Starter [vitalie8484](https://wordpress.org/support/users/vitalie8484/)
 * (@vitalie8484)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/depth-parameter-in-shortcode/#post-5503711)
 * Thanks for fast response. I resolved the problem also with css:
    .myclass .myclass{
   display: none; }

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Depth parameter in shortcode’ is closed to new replies.

 * ![](https://ps.w.org/cc-child-pages/assets/icon-256x256.png?rev=3451096)
 * [CC Child Pages](https://wordpress.org/plugins/cc-child-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cc-child-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cc-child-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/cc-child-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cc-child-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cc-child-pages/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [vitalie8484](https://wordpress.org/support/users/vitalie8484/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/depth-parameter-in-shortcode/#post-5503711)
 * Status: resolved