Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author caterhamcomputing

    (@caterhamcomputing)

    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

    (@caterhamcomputing)

    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

    (@vitalie8484)

    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.