Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I tried Fold Page… awesome!!

    But, I have to stick with parameters in wp_list_pages.

    I want the parameter to display only parent pages on the sidebar. I am familiar with exclude pages, but I would have to edit my sidebar everytime I add a subpage (not good solution)

    Example:
    * BIo (page=3)
    – Frank (page=4)
    – Jo (page=5)
    – Bill (page=6)

    Not Good:
    <?php wp_list_pages(‘exclude=4,5,6&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    Doesn’t Work:
    <?php wp_list_pages(‘include=3&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    I don’t think “include only” exists.

    Is there a way to display parents only and no children? I know the child_of parameter… can it be used here to exclude children?

    I tried Fold Page Plugin… awesome!!
    But, I have to stick with parameters in wp_list_pages.

    I want the parameter to display only parent pages on the sidebar. I am familiar with exclude pages, but I would have to edit my sidebar everytime I add a subpage (not good solution)

    Example:
    * BIo (page=3)
    – Frank (page=4)
    – Jo (page=5)
    – Bill (page=6)

    Not Good:
    <?php wp_list_pages(‘exclude=4,5,6&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    Doesn’t Work:
    <?php wp_list_pages(‘include=3&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    1. I don’t think “include only” exists.

    2. Is there a way to display parents only and no children? I know the child_of parameter… can it be used here to exclude children?

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