WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Subpages as Secondary Menu
[resolved] Excluding pages from the secondary menu (3 posts)

  1. jrs76
    Member
    Posted 2 years ago #

    First of all, thanks for this great plugin.
    Is there any way to exclude certain pages from the secondary menu?
    Thanks.

    http://wordpress.org/extend/plugins/genesis-subpages-as-secondary-menu/

  2. flyingpylon
    Member
    Posted 2 years ago #

    I am wondering the same thing. There are lots of reasons you might want to exclude certain pages.

    Also, is there any documentation for the filters that are available?

  3. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    To exclude pages, use the be_genesis_subpages_args filter like so: https://gist.github.com/1481985

    These args go into wp_list_pages, so use that codex page as a guide for what parameters you can use.

    Here's all the filters (the best place to look is in the plugin itself, just search for apply_filters):

    be_genesis_subpages_args.
    Default (array):

    $args = array(
    'child_of' => $parent->ID,
    'title_li' => '',
    'echo' => false,
    );

    be_genesis_subpages_wrapper
    Default (array):


    array( '<ul id="menu-genesis-subpages" class="nav">', '' )

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic