WordPress.org

Ready to get started?Download WordPress

Forums

Page-list
Show full branch (2 posts)

  1. Andrzej
    Member
    Posted 10 months ago #

    Hello webvitaly.

    I've tried a few param settings and was unable to achieve the following.

    Display in sidebar the top level nav menu page and all its children, whenever the top level page or its child is being viewed. This view should exclude all top level siblings but should include child siblings.

    For example; a nav menu has Home and About pages. About has Child1 and Child2 pages. Child1 has Child1.2 page.

    When 'any' page on the About branch is viewed, the complete branch should be listed as; About, Child1, Child1.2, Child2.

    Is this somethings that "Page-list" can be configured to do?

    Thank you for guidance on this matter.

    http://wordpress.org/plugins/page-list/

  2. Andrzej
    Member
    Posted 10 months ago #

    Well, I've had some success in achieving the desired sidebar page list. This shortcode will do the trick by showing the toplevel menu parent and children. It excludes other toplevel parent siblings:

    [pagelist exclude_tree="3,7,11"]

    I was hoping for a cleaner solution but this will work.

    Unfortunately, core WP only evaluates the 'first' exclude and ignores the remaining (7,11) parent items. WP has a bug fix planned for WP 3.8 to resolve this.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.